Fix a few bugs in mosaic bridge.
authorAntoine Cellerier <dionoea@videolan.org>
Sat, 28 Jun 2008 14:09:05 +0000 (16:09 +0200)
committerAntoine Cellerier <dionoea@videolan.org>
Sat, 28 Jun 2008 14:09:05 +0000 (16:09 +0200)
modules/stream_out/mosaic_bridge.c

index 12f0309..e6d17d5 100644 (file)
@@ -82,7 +82,6 @@ static void ReleasePicture( picture_t *p_pic )
     if( --p_pic->i_refcount > 0 )
         return;
 
-    assert( p_pic->p_sys );
     if( p_pic->p_sys )
     {
         pf_release_t pf_release = (pf_release_t)p_pic->p_sys;
@@ -440,6 +439,10 @@ static sout_stream_id_t * Add( sout_stream_t *p_stream, es_format_t *p_fmt )
         filter_chain_AppendFromString( p_sys->p_vf2, psz_chain );
         free( psz_chain );
     }
+    else
+    {
+        p_sys->p_vf2 = NULL;
+    }
 
     return (sout_stream_id_t *)p_sys;
 }