]> git.sesse.net Git - vlc/commitdiff
Display the decoded video format in the "Media information" panel.
authorLaurent Aimar <fenrir@videolan.org>
Mon, 5 Sep 2011 19:33:43 +0000 (21:33 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Mon, 5 Sep 2011 19:33:43 +0000 (21:33 +0200)
It closes #5053.

src/input/es_out.c

index fe0f4f05b9c75a03a9cef75f30e004382feec927..8cb7a3b85bfb8f85a0c56a0d9dcf899f0c4da1d6 100644 (file)
@@ -2988,6 +2988,15 @@ static void EsOutUpdateInfo( es_out_t *out, es_out_id_t *es, const es_format_t *
                info_category_AddInfo( p_cat, _("Frame rate"), "%"PRId64,
                                       div.quot );
        }
+       if( fmt->i_codec != p_fmt_es->i_codec )
+       {
+           const char *psz_chroma_description =
+                vlc_fourcc_GetDescription( VIDEO_ES, fmt->i_codec );
+           if( psz_chroma_description )
+               info_category_AddInfo( p_cat, _("Decoded format"), "%s",
+                                      psz_chroma_description );
+       }
+
        break;
 
     case SPU_ES: