[vlc-commits] kva: use the locally edited output format to log the chroma

Steve Lhomme git at videolan.org
Mon Sep 7 08:16:58 CEST 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Sep  2 09:30:53 2020 +0200| [39d996b84bcbc615cbf4b77a6539ac5be33076d4] | committer: Steve Lhomme

kva: use the locally edited output format to log the chroma

It may differ if we change the chroma of the local fmt before it's set on
vd->fmt.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=39d996b84bcbc615cbf4b77a6539ac5be33076d4
---

 modules/video_output/kva.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/video_output/kva.c b/modules/video_output/kva.c
index cda74bddab..fb7d289e20 100644
--- a/modules/video_output/kva.c
+++ b/modules/video_output/kva.c
@@ -592,7 +592,7 @@ static int OpenDisplay( vout_display_t *vd, video_format_t *fmt )
     char *title = var_InheritString( vd, "video-title" );
     if (title != NULL
      || asprintf( &title, VOUT_TITLE " (%4.4s to %4.4s - %s mode KVA output)",
-                  (char *)&vd->fmt->i_chroma, (char *)&sys->kvas.fccSrcColor,
+                  (char *)&fmt->i_chroma, (char *)&sys->kvas.fccSrcColor,
                   psz_video_mode[sys->kvac.ulMode - 1] ) >= 0)
     {
         WinSetWindowText( sys->frame, title );



More information about the vlc-commits mailing list