[vlc-commits] Vorbis: don't add empty tags to codec details
Jean-Baptiste Kempf
git at videolan.org
Thu Aug 25 16:05:56 CEST 2011
vlc/vlc-1.1 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Aug 25 15:59:52 2011 +0200| [b49dc66d42aa9d587876c08296dbf02a0a9db6b9] | committer: Jean-Baptiste Kempf
Vorbis: don't add empty tags to codec details
Close #4926
(cherry picked from commit f778aeaecf50a5a69ada15714effe331d8905340)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=b49dc66d42aa9d587876c08296dbf02a0a9db6b9
---
modules/codec/vorbis.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/modules/codec/vorbis.c b/modules/codec/vorbis.c
index 8ef775f..d8a0cd5 100644
--- a/modules/codec/vorbis.c
+++ b/modules/codec/vorbis.c
@@ -570,6 +570,10 @@ static void ParseVorbisComments( decoder_t *p_dec )
*psz_value = '\0';
psz_value++;
+ /* Don't add empty values */
+ if( *psz_value == '\0' )
+ break;
+
if( !p_dec->p_description )
p_dec->p_description = vlc_meta_New();
if( p_dec->p_description )
More information about the vlc-commits
mailing list