From bf1fea349437bba504ec90dd2ff7e1888f1bde2b Mon Sep 17 00:00:00 2001 From: jp9000 Date: Fri, 12 Sep 2014 01:13:22 -0700 Subject: [PATCH] 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. --- plugins/win-dshow/win-dshow.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/plugins/win-dshow/win-dshow.cpp b/plugins/win-dshow/win-dshow.cpp index 40852f8ae..bf9accce5 100644 --- a/plugins/win-dshow/win-dshow.cpp +++ b/plugins/win-dshow/win-dshow.cpp @@ -584,16 +584,6 @@ static void DestroyDShowInput(void *data) delete reinterpret_cast(data); } -static uint32_t GetDShowWidth(void *data) -{ - return reinterpret_cast(data)->videoConfig.cx; -} - -static uint32_t GetDShowHeight(void *data) -{ - return reinterpret_cast(data)->videoConfig.cy; -} - static void UpdateDShowInput(void *data, obs_data_t settings) { reinterpret_cast(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);