]> git.sesse.net Git - vlc/blobdiff - modules/codec/vorbis.c
* vorbis comments can be mixed case. strstr -> strcasestr
[vlc] / modules / codec / vorbis.c
index 2a46a7640820e023394dbfcf330b2f82638fa002..666a19ff1f1a7ae6bff8508888f5ecae694a62ad 100644 (file)
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * vorbis.c: vorbis decoder/encoder/packetizer module making use of libvorbis.
  *****************************************************************************
- * Copyright (C) 2001-2003 VideoLAN
+ * Copyright (C) 2001-2003 the VideoLAN team
  * $Id$
  *
  * Authors: Gildas Bazin <gbazin@videolan.org>
@@ -194,7 +194,7 @@ vlc_module_begin();
        set_callbacks( OpenEncoder, CloseEncoder );
 #endif
 
-    add_integer( ENC_CFG_PREFIX "quality", 3, NULL, ENC_QUALITY_TEXT,
+    add_integer( ENC_CFG_PREFIX "quality", 0, NULL, ENC_QUALITY_TEXT,
                  ENC_QUALITY_LONGTEXT, VLC_FALSE );
     add_integer( ENC_CFG_PREFIX "max-bitrate", 0, NULL, ENC_MAXBR_TEXT,
                  ENC_MAXBR_LONGTEXT, VLC_FALSE );
@@ -311,6 +311,7 @@ static void *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
     if( p_sys->i_headers == 0 && p_dec->fmt_in.i_extra )
     {
         /* Headers already available as extra data */
+        msg_Dbg( p_dec, "Headers already available as extra data" );
         p_sys->i_headers = 3;
     }
     else if( oggpacket.bytes && p_sys->i_headers < 3 )
@@ -617,12 +618,12 @@ static void ParseVorbisComments( decoder_t *p_dec )
             input_Control( p_input, INPUT_ADD_INFO, _("Vorbis comment"),
                            psz_name, psz_value );
             /* HACK, we should use meta */
-            if( strstr( psz_name, "artist" ) )
+            if( strcasestr( psz_name, "artist" ) )
             {
                 input_Control( p_input, INPUT_ADD_INFO, _("Meta-information"),
                                _("Artist"), psz_value );
             }
-            else if( strstr( psz_name, "title" ) )
+            else if( strcasestr( psz_name, "title" ) )
             {
                 p_input->input.p_item->psz_name = strdup( psz_value );
             }