win-dshow: Allow automatic handling of source res

On an asynchronous video source, the source resolution is automatically
handled by the core, and set to the resolution of the last video data
that was sent.  There is no need to manually specify a resolution.
master
jp9000 2014-09-12 01:13:22 -07:00
parent 1abcdd7f50
commit bf1fea3494
1 changed files with 0 additions and 12 deletions

View File

@ -584,16 +584,6 @@ static void DestroyDShowInput(void *data)
delete reinterpret_cast<DShowInput*>(data);
}
static uint32_t GetDShowWidth(void *data)
{
return reinterpret_cast<DShowInput*>(data)->videoConfig.cx;
}
static uint32_t GetDShowHeight(void *data)
{
return reinterpret_cast<DShowInput*>(data)->videoConfig.cy;
}
static void UpdateDShowInput(void *data, obs_data_t settings)
{
reinterpret_cast<DShowInput*>(data)->Update(settings);
@ -1347,8 +1337,6 @@ bool obs_module_load(void)
info.create = CreateDShowInput;
info.destroy = DestroyDShowInput;
info.update = UpdateDShowInput;
info.get_width = GetDShowWidth;
info.get_height = GetDShowHeight;
info.get_defaults = GetDShowDefaults;
info.get_properties = GetDShowProperties;
obs_register_source(&info);