]> git.sesse.net Git - vlc/commitdiff
Fixed an invalid msg_Err format (potential segfault).
authorLaurent Aimar <fenrir@videolan.org>
Mon, 21 Jul 2008 21:18:12 +0000 (23:18 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Mon, 21 Jul 2008 22:25:48 +0000 (00:25 +0200)
modules/demux/subtitle_asa.c

index 273d8f39f96d756878dc8b71032060dfbe7fa7c8..89015e8b8568bc10776713a69463ba51713007c4 100644 (file)
@@ -212,7 +212,7 @@ static int Open ( vlc_object_t *p_this )
     }
     if( !p_detect->fmt )
     {
-        msg_Err( p_demux, "detected %s subtitle format, no asa support" );
+        msg_Err( p_demux, "detected %s subtitle format, no asa support", p_detect->name );
         free( p_sys );
         return VLC_EGENERIC;
     }
@@ -276,6 +276,8 @@ static int ProcessLine( demux_t *p_demux, void *p_arg,
     subtitle_t *p_subtitle;
     char *psz_text;
 
+    VLC_UNUSED(p_arg);
+
     if( p_sys->i_subtitles >= p_sys->i_subs_alloc )
     {
         p_sys->i_subs_alloc += 500;