From 306e23292d7b3fc17383ded8bdd77a86a5e78af5 Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 26 Jan 2022 19:14:56 +0100 Subject: [PATCH] win-dshow: Log buffered state --- plugins/win-dshow/win-dshow.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/plugins/win-dshow/win-dshow.cpp b/plugins/win-dshow/win-dshow.cpp index 59cbe57d2..a5a8c5e7e 100644 --- a/plugins/win-dshow/win-dshow.cpp +++ b/plugins/win-dshow/win-dshow.cpp @@ -973,6 +973,8 @@ bool DShowInput::UpdateVideoConfig(obs_data_t *settings) os_wcs_to_utf8_ptr(videoConfig.path.c_str(), videoConfig.path.size(), &path_utf8); + SetupBuffering(settings); + blog(LOG_INFO, "---------------------------------"); blog(LOG_INFO, "[DShow Device: '%s'] settings updated: \n" @@ -981,13 +983,13 @@ bool DShowInput::UpdateVideoConfig(obs_data_t *settings) "\tresolution: %dx%d\n" "\tflip: %d\n" "\tfps: %0.2f (interval: %lld)\n" - "\tformat: %s", + "\tformat: %s\n" + "\tbuffering: %s", obs_source_get_name(source), (const char *)name_utf8, (const char *)path_utf8, videoConfig.cx, videoConfig.cy_abs, (int)videoConfig.cy_flip, fps, videoConfig.frameInterval, - formatName->array); - - SetupBuffering(settings); + formatName->array, + obs_source_async_unbuffered(source) ? "disabled" : "enabled"); return true; }