[vlc-commits] es_out: fix codec alias description

Francois Cartegnie git at videolan.org
Thu Sep 14 15:03:53 CEST 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Sep 14 14:22:25 2017 +0200| [72f490f085d3d689d93016d8ee69de0cd6092139] | committer: Francois Cartegnie

es_out: fix codec alias description

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

 src/input/es_out.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/input/es_out.c b/src/input/es_out.c
index 33e10eed87..df13821a6e 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -3032,10 +3032,10 @@ static void EsOutUpdateInfo( es_out_t *out, es_out_id_t *es, const es_format_t *
         info_category_AddInfo( p_cat, _("Original ID"),
                        "%d", es->i_id );
 
-    const char *psz_codec_description =
-        vlc_fourcc_GetDescription( p_fmt_es->i_cat, p_fmt_es->i_codec );
     const vlc_fourcc_t i_codec_fourcc = ( p_fmt_es->i_original_fourcc )?
                                p_fmt_es->i_original_fourcc : p_fmt_es->i_codec;
+    const char *psz_codec_description =
+        vlc_fourcc_GetDescription( p_fmt_es->i_cat, i_codec_fourcc );
     if( psz_codec_description && *psz_codec_description )
         info_category_AddInfo( p_cat, _("Codec"), "%s (%.4s)",
                                psz_codec_description, (char*)&i_codec_fourcc );



More information about the vlc-commits mailing list