[vlc-devel] [PATCH 19/20] display: log when the source or picture placement changes

Steve Lhomme robux4 at ycbcr.xyz
Tue Aug 25 09:30:07 CEST 2020


---
 modules/video_output/win32/common.c | 9 ---------
 src/video_output/display.c          | 9 +++++++++
 2 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/modules/video_output/win32/common.c b/modules/video_output/win32/common.c
index df45a5d3d83..c8165cc7a95 100644
--- a/modules/video_output/win32/common.c
+++ b/modules/video_output/win32/common.c
@@ -97,15 +97,6 @@ void CommonPlacePicture(vout_display_t *vd, display_win32_area_t *area)
 {
     {
         area->place_changed |= true;
-
-#ifndef NDEBUG
-        msg_Dbg(vd, "UpdateRects source offset: %i,%i visible: %ix%i decoded: %ix%i",
-            vd->source.i_x_offset, vd->source.i_y_offset,
-            vd->source.i_visible_width, vd->source.i_visible_height,
-            vd->source.i_width, vd->source.i_height);
-        msg_Dbg(vd, "UpdateRects image_dst coords: %i,%i %ix%i",
-            vd->place->x, vd->place->y, vd->place->width, vd->place->height);
-#endif
     }
 }
 
diff --git a/src/video_output/display.c b/src/video_output/display.c
index dcd6bbc4f00..2e20b4ca977 100644
--- a/src/video_output/display.c
+++ b/src/video_output/display.c
@@ -470,6 +470,15 @@ static void UpdatePlacedPicture(vout_display_priv_t *osys)
 {
     vout_display_t *vd = &osys->display;
     vout_display_PlacePicture(&osys->place, &vd->source, &osys->cfg);
+
+#ifndef NDEBUG
+    msg_Dbg(vd, "UpdateRects source offset: %i,%i visible: %ix%i decoded: %ix%i",
+        vd->source.i_x_offset, vd->source.i_y_offset,
+        vd->source.i_visible_width, vd->source.i_visible_height,
+        vd->source.i_width, vd->source.i_height);
+    msg_Dbg(vd, "UpdateRects image_dst coords: %i,%i %ix%i",
+        vd->place->x, vd->place->y, vd->place->width, vd->place->height);
+#endif
 }
 
 static void vout_display_Reset(vout_display_t *vd)
-- 
2.26.2



More information about the vlc-devel mailing list