]> git.sesse.net Git - vlc/blobdiff - modules/demux/subtitle.c
Translate Console.
[vlc] / modules / demux / subtitle.c
index 46f26534bec8b057cc4ce200e853118565a0b0fc..f7b9ae3a488446db350851f491a2c4e90fa2ce95 100644 (file)
@@ -253,7 +253,7 @@ static int Open ( vlc_object_t *p_this )
     /* Get or probe the type */
     p_sys->i_type = SUB_TYPE_UNKNOWN;
     psz_type = var_CreateGetString( p_demux, "sub-type" );
-    if( *psz_type )
+    if( psz_type && *psz_type )
     {
         int i;
 
@@ -449,7 +449,6 @@ static int Open ( vlc_object_t *p_this )
             if( !( p_sys->subtitle = realloc( p_sys->subtitle,
                                               sizeof(subtitle_t) * i_max ) ) )
             {
-                msg_Err( p_demux, "out of memory");
                 free( p_sys->subtitle );
                 TextUnload( &p_sys->txt );
                 free( p_sys );