]> git.sesse.net Git - vlc/commitdiff
* modules/codec/vorbis.c: fixed parsing of vorbis comments. (closing #69)
authorGildas Bazin <gbazin@videolan.org>
Tue, 28 Jan 2003 14:41:05 +0000 (14:41 +0000)
committerGildas Bazin <gbazin@videolan.org>
Tue, 28 Jan 2003 14:41:05 +0000 (14:41 +0000)
modules/codec/vorbis.c

index 5edf08b422f8a81793eb48cb57a0917958413162..145c0e6f81338fa9abab1ef7dbecd45267911054 100644 (file)
@@ -2,7 +2,7 @@
  * vorbis.c: vorbis decoder module making use of libvorbis.
  *****************************************************************************
  * Copyright (C) 1999-2001 VideoLAN
- * $Id: vorbis.c,v 1.12 2003/01/23 15:52:04 sam Exp $
+ * $Id: vorbis.c,v 1.13 2003/01/28 14:41:05 gbazin Exp $
  *
  * Authors: Gildas Bazin <gbazin@netcourrier.com>
  *
@@ -194,9 +194,12 @@ static int RunDecoder( decoder_fifo_t * p_fifo )
             psz_comment = strdup( p_dec->vc.user_comments[i] );
             psz_name = psz_comment;
             psz_value = strchr( psz_comment, '=' );
-            *psz_value = '\0';
-            psz_value++;
-            input_AddInfo( p_cat, psz_name, psz_value );
+            if( psz_value )
+            {
+                *psz_value = '\0';
+                psz_value++;
+                input_AddInfo( p_cat, psz_name, psz_value );
+            }
             free( psz_comment );
             i++;
         }