Commit cf168e78 authored by Jean-Philippe André's avatar Jean-Philippe André

Stream: Export stream_FilterNew

parent 2039a06b
...@@ -181,6 +181,11 @@ VLC_EXPORT( stream_t *,__stream_MemoryNew, (vlc_object_t *p_obj, uint8_t *p_buff ...@@ -181,6 +181,11 @@ VLC_EXPORT( stream_t *,__stream_MemoryNew, (vlc_object_t *p_obj, uint8_t *p_buff
#define stream_UrlNew( a, b ) __stream_UrlNew( VLC_OBJECT(a), b ) #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 ) ); 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 ) );
/** /**
* @} * @}
*/ */
......
...@@ -29,6 +29,8 @@ ...@@ -29,6 +29,8 @@
#include <vlc_stream.h> #include <vlc_stream.h>
#include <libvlc.h> #include <libvlc.h>
#include <assert.h>
#include "stream.h" #include "stream.h"
static void StreamDelete( stream_t * ); static void StreamDelete( stream_t * );
...@@ -37,6 +39,7 @@ stream_t *stream_FilterNew( stream_t *p_source, ...@@ -37,6 +39,7 @@ stream_t *stream_FilterNew( stream_t *p_source,
const char *psz_stream_filter ) const char *psz_stream_filter )
{ {
stream_t *s; stream_t *s;
assert( p_source != NULL );
s = stream_CommonNew( VLC_OBJECT( p_source ) ); s = stream_CommonNew( VLC_OBJECT( p_source ) );
if( s == NULL ) if( s == NULL )
......
...@@ -388,6 +388,7 @@ stream_Control ...@@ -388,6 +388,7 @@ stream_Control
stream_Delete stream_Delete
stream_DemuxNew stream_DemuxNew
stream_DemuxSend stream_DemuxSend
stream_FilterNew
__stream_MemoryNew __stream_MemoryNew
stream_Peek stream_Peek
stream_Read stream_Read
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment