[vlc-commits] es_out: don't add codec info if none
Francois Cartegnie
git at videolan.org
Wed Sep 11 00:30:04 CEST 2013
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Sep 9 17:34:17 2013 +0200| [22c9b6fecfac5c62cf20369f602fbe95e7350f13] | committer: Francois Cartegnie
es_out: don't add codec info if none
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=22c9b6fecfac5c62cf20369f602fbe95e7350f13
---
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 6b0e9ad..68acf5e 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -2887,10 +2887,10 @@ static void EsOutUpdateInfo( es_out_t *out, es_out_id_t *es, const es_format_t *
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;
- if( psz_codec_description )
+ if( psz_codec_description && *psz_codec_description )
info_category_AddInfo( p_cat, _("Codec"), "%s (%.4s)",
psz_codec_description, (char*)&i_codec_fourcc );
- else
+ else if ( i_codec_fourcc != VLC_FOURCC(0,0,0,0) )
info_category_AddInfo( p_cat, _("Codec"), "%.4s",
(char*)&i_codec_fourcc );
More information about the vlc-commits
mailing list