[vlc-commits] Display the decoded video format in the "Media information" panel.

Laurent Aimar git at videolan.org
Mon Sep 5 21:34:41 CEST 2011


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Mon Sep  5 21:33:43 2011 +0200| [74c0aebf457f5599b226af977741046485985698] | committer: Laurent Aimar

Display the decoded video format in the "Media information" panel.

It closes #5053.

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

 src/input/es_out.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/src/input/es_out.c b/src/input/es_out.c
index fe0f4f0..8cb7a3b 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -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:



More information about the vlc-commits mailing list