[vlc-commits] [Git][videolan/vlc][master] video_output: log what has changed in new input format

Steve Lhomme (@robUx4) gitlab at videolan.org
Wed Jan 10 15:18:47 UTC 2024



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
268e3442 by Steve Lhomme at 2024-01-10T14:34:16+00:00
video_output: log what has changed in new input format

- - - - -


1 changed file:

- src/video_output/video_output.c


Changes:

=====================================
src/video_output/video_output.c
=====================================
@@ -875,6 +875,9 @@ static void ChangeFilters(vout_thread_sys_t *vout)
     }
 
     if (!es_format_IsSimilar(p_fmt_current, &fmt_target)) {
+        es_format_LogDifferences(vlc_object_logger(&vout->obj),
+                "current", p_fmt_current, "new", &fmt_target);
+
         /* Shallow local copy */
         es_format_t tmp = *p_fmt_current;
         /* Assign the same chroma to compare everything except the chroma */
@@ -2127,12 +2130,15 @@ int vout_ChangeSource( vout_thread_t *vout, const video_format_t *original,
      /* TODO: If dimensions are equal or slightly smaller, update the aspect
      * ratio and crop settings, instead of recreating a display.
      */
-    if (video_format_IsSimilar(original, &sys->original)) {
-        /* It is assumed that the SPU input matches input already. */
-        return 0;
+    if (!video_format_IsSimilar(original, &sys->original))
+    {
+        msg_Dbg(&vout->obj, "vout format changed");
+        video_format_LogDifferences(vlc_object_logger(&vout->obj), "current", &sys->original, "new", original);
+        return -1;
     }
 
-    return -1;
+    /* It is assumed that the SPU input matches input already. */
+    return 0;
 }
 
 static int EnableWindowLocked(vout_thread_sys_t *vout, const video_format_t *original)



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/268e34427702d71d79b38eb8e14c4dbe6d127af5

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/268e34427702d71d79b38eb8e14c4dbe6d127af5
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list