提交 cd6e9e34 编写于 作者: J jp9000

win-dshow: Clarify function name/purpose

IsEncoded is meant to be used to indicated delayed devices, such as
older Elgato devices, or Hauppauge device.  Devices that use H264 and
have a 800+ millisecond latency.  This changes the function name to
better indicate that.
上级 68a5a40d
......@@ -804,7 +804,7 @@ static bool DetermineResolution(int &cx, int &cy, obs_data_t *settings,
static long long GetOBSFPS();
static inline bool IsEncoded(const VideoConfig &config)
static inline bool IsDelayedDevice(const VideoConfig &config)
{
return config.format >= VideoFormat::MJPEG ||
wstrstri(config.name.c_str(), L"elgato") != NULL ||
......@@ -824,7 +824,7 @@ inline void DShowInput::SetupBuffering(obs_data_t *settings)
bufType = (BufferingType)obs_data_get_int(settings, BUFFERING_VAL);
if (bufType == BufferingType::Auto)
useBuffering = IsEncoded(videoConfig);
useBuffering = IsDelayedDevice(videoConfig);
else
useBuffering = bufType == BufferingType::On;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册