]> git.sesse.net Git - vlc/commitdiff
transcode: don't fail spu track if we don't have something to render
authorIlkka Ollakka <ileoo@videolan.org>
Wed, 26 Feb 2014 11:52:58 +0000 (13:52 +0200)
committerIlkka Ollakka <ileoo@videolan.org>
Wed, 26 Feb 2014 12:02:47 +0000 (14:02 +0200)
SPU track works even if it doesn't have something to render at given time.
Fixes soverlay and subtitles in sout.

modules/stream_out/transcode/spu.c

index 5738f072b2a6bef8a824292ec80aae675b809725..ccdeca14b9bd31fdf50f5d7889c64541de714aad 100644 (file)
@@ -129,7 +129,10 @@ int transcode_spu_process( sout_stream_t *p_stream,
 
     p_subpic = id->p_decoder->pf_decode_sub( id->p_decoder, &in );
     if( !p_subpic )
-        return VLC_EGENERIC;
+    {
+        /* We just don't have anything to handle now, go own*/
+        return VLC_SUCCESS;
+    }
 
     if( p_sys->b_master_sync && p_sys->i_master_drift )
     {