Browse Source

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.
jp9000 11 năm trước cách đây
mục cha
commit
bf1fea3494
1 tập tin đã thay đổi với 0 bổ sung12 xóa
  1. 0 12
      plugins/win-dshow/win-dshow.cpp

+ 0 - 12
plugins/win-dshow/win-dshow.cpp

@@ -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);