/*****************************************************************************
* Preamble
*****************************************************************************/
-#include <errno.h> /* ENOMEM */
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
+#include <errno.h> /* ENOMEM */
+
#include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_sout.h>
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;
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;
}