]> git.sesse.net Git - vlc/commitdiff
Fix segfault when spu heap is full
authorClément Stenac <zorglub@videolan.org>
Sat, 2 Oct 2004 21:01:46 +0000 (21:01 +0000)
committerClément Stenac <zorglub@videolan.org>
Sat, 2 Oct 2004 21:01:46 +0000 (21:01 +0000)
src/input/decoder.c

index e7cdabefc3a370520ce44e71023dfe31798ebd7e..6447ccedfe65384085f0f5e38f26c4abb52a33dd 100644 (file)
@@ -947,7 +947,10 @@ static subpicture_t *spu_new_buffer( decoder_t *p_dec )
     }
 
     p_subpic = spu_CreateSubpicture( p_vout->p_spu );
-    p_subpic->i_channel = p_sys->i_spu_channel;
+    if( p_subpic )
+    {
+        p_subpic->i_channel = p_sys->i_spu_channel;
+    }
 
     vlc_object_release( p_vout );