#define stream_UrlNew( a, b ) __stream_UrlNew( VLC_OBJECT(a), b )
VLC_EXPORT( stream_t *,__stream_UrlNew, (vlc_object_t *p_this, const char *psz_url ) );
+/**
+ * Try to add a stream filter to an open stream.
+ * @return New stream to use, or NULL if the filter could not be added.
+ **/
+VLC_EXPORT( stream_t*, stream_FilterNew, ( stream_t *p_source, const char *psz_stream_filter ) );
/**
* @}
*/
#include <vlc_stream.h>
#include <libvlc.h>
+#include <assert.h>
+
#include "stream.h"
static void StreamDelete( stream_t * );
const char *psz_stream_filter )
{
stream_t *s;
+ assert( p_source != NULL );
s = stream_CommonNew( VLC_OBJECT( p_source ) );
if( s == NULL )