瀏覽代碼

win-capture: Add logging for Force SDR checkbox

jpark37 2 年之前
父節點
當前提交
695f476553
共有 2 個文件被更改,包括 8 次插入4 次删除
  1. 3 2
      plugins/win-capture/duplicator-monitor-capture.c
  2. 5 2
      plugins/win-capture/window-capture.c

+ 3 - 2
plugins/win-capture/duplicator-monitor-capture.c

@@ -265,10 +265,11 @@ static void log_settings(struct duplicator_capture *capture,
 	     "\tmethod: %s\n"
 	     "\tmethod: %s\n"
 	     "\tid: %s\n"
 	     "\tid: %s\n"
 	     "\talt_id: %s\n"
 	     "\talt_id: %s\n"
-	     "\tsetting_id: %s",
+	     "\tsetting_id: %s\n"
+	     "\tforce SDR: %s",
 	     monitor, width, height, capture->capture_cursor ? "true" : "false",
 	     monitor, width, height, capture->capture_cursor ? "true" : "false",
 	     get_method_name(capture->method), capture->id, capture->alt_id,
 	     get_method_name(capture->method), capture->id, capture->alt_id,
-	     capture->monitor_id);
+	     capture->monitor_id, capture->force_sdr ? "true" : "false");
 }
 }
 
 
 static enum display_capture_method
 static enum display_capture_method

+ 5 - 2
plugins/win-capture/window-capture.c

@@ -180,9 +180,12 @@ static void log_settings(struct window_capture *wc, obs_data_t *s)
 		     "[window-capture: '%s'] update settings:\n"
 		     "[window-capture: '%s'] update settings:\n"
 		     "\texecutable: %s\n"
 		     "\texecutable: %s\n"
 		     "\tmethod selected: %s\n"
 		     "\tmethod selected: %s\n"
-		     "\tmethod chosen: %s\n",
+		     "\tmethod chosen: %s\n"
+		     "\tforce SDR: %s",
 		     obs_source_get_name(wc->source), wc->executable,
 		     obs_source_get_name(wc->source), wc->executable,
-		     get_method_name(method), get_method_name(wc->method));
+		     get_method_name(method), get_method_name(wc->method),
+		     (wc->force_sdr && (wc->method == METHOD_WGC)) ? "true"
+								   : "false");
 		blog(LOG_DEBUG, "\tclass:      %s", wc->class);
 		blog(LOG_DEBUG, "\tclass:      %s", wc->class);
 	}
 	}
 }
 }