/* add, remove a stream */
sout_stream_id_sys_t *(*pf_add)( sout_stream_t *, es_format_t * );
- int (*pf_del)( sout_stream_t *, sout_stream_id_sys_t * );
+ void (*pf_del)( sout_stream_t *, sout_stream_id_sys_t * );
/* manage a packet */
int (*pf_send)( sout_stream_t *, sout_stream_id_sys_t *, block_t* );
{
return s->pf_add( s, fmt );
}
-static inline int sout_StreamIdDel( sout_stream_t *s, sout_stream_id_sys_t *id )
+static inline void sout_StreamIdDel( sout_stream_t *s, sout_stream_id_sys_t *id )
{
- return s->pf_del( s, id );
+ s->pf_del( s, id );
}
static inline int sout_StreamIdSend( sout_stream_t *s, sout_stream_id_sys_t *id, block_t *b )
{
* Local prototypes
*****************************************************************************/
static sout_stream_id_sys_t *Add ( sout_stream_t *, es_format_t * );
-static int Del ( sout_stream_t *, sout_stream_id_sys_t * );
+static void Del ( sout_stream_t *, sout_stream_id_sys_t * );
static int Send ( sout_stream_t *, sout_stream_id_sys_t *, block_t * );
struct sout_stream_id_sys_t
return p_es;
}
-static int Del( sout_stream_t *p_stream, sout_stream_id_sys_t *p_es )
+static void Del( sout_stream_t *p_stream, sout_stream_id_sys_t *p_es )
{
sout_stream_sys_t *p_sys = (sout_stream_sys_t *)p_stream->p_sys;
sout_stream_id_sys_t *id = p_es->id;
free( p_es );
if ( id != NULL )
- return p_stream->p_next->pf_del( p_stream->p_next, id );
- else
- return VLC_SUCCESS;
+ p_stream->p_next->pf_del( p_stream->p_next, id );
}
static int Send( sout_stream_t *p_stream, sout_stream_id_sys_t *p_es,
};
static sout_stream_id_sys_t *AddOut ( sout_stream_t *, es_format_t * );
-static int DelOut ( sout_stream_t *, sout_stream_id_sys_t * );
+static void DelOut ( sout_stream_t *, sout_stream_id_sys_t * );
static int SendOut( sout_stream_t *, sout_stream_id_sys_t *, block_t * );
static sout_stream_id_sys_t *AddIn ( sout_stream_t *, es_format_t * );
-static int DelIn ( sout_stream_t *, sout_stream_id_sys_t * );
+static void DelIn ( sout_stream_t *, sout_stream_id_sys_t * );
static int SendIn( sout_stream_t *, sout_stream_id_sys_t *, block_t * );
typedef struct bridged_es_t
return (sout_stream_id_sys_t *)p_sys;
}
-static int DelOut( sout_stream_t *p_stream, sout_stream_id_sys_t *id )
+static void DelOut( sout_stream_t *p_stream, sout_stream_id_sys_t *id )
{
VLC_UNUSED(id);
out_sout_stream_sys_t *p_sys = (out_sout_stream_sys_t *)p_stream->p_sys;
bridged_es_t *p_es;
if ( !p_sys->b_inited )
- {
- return VLC_SUCCESS;
- }
+ return;
vlc_mutex_lock( &lock );
vlc_mutex_unlock( &lock );
p_sys->b_inited = false;
-
- return VLC_SUCCESS;
}
static int SendOut( sout_stream_t *p_stream, sout_stream_id_sys_t *id,
return id;
}
-static int DelIn( sout_stream_t *p_stream, sout_stream_id_sys_t *id )
+static void DelIn( sout_stream_t *p_stream, sout_stream_id_sys_t *id )
{
in_sout_stream_sys_t *p_sys = (in_sout_stream_sys_t *)p_stream->p_sys;
if( id == p_sys->id_video ) p_sys->id_video = NULL;
if( id == p_sys->id_audio ) p_sys->id_audio = NULL;
- int ret = p_stream->p_next->pf_del( p_stream->p_next, id->id );
-
+ p_stream->p_next->pf_del( p_stream->p_next, id->id );
free( id );
- return ret;
}
static int SendIn( sout_stream_t *p_stream, sout_stream_id_sys_t *id,
static void Close ( vlc_object_t * );
static sout_stream_id_sys_t *Add ( sout_stream_t *, es_format_t * );
-static int Del ( sout_stream_t *, sout_stream_id_sys_t * );
+static void Del ( sout_stream_t *, sout_stream_id_sys_t * );
static int Send( sout_stream_t *, sout_stream_id_sys_t *, block_t* );
/*****************************************************************************
return NULL;
}
-static int Del( sout_stream_t *p_stream, sout_stream_id_sys_t *id )
+static void Del( sout_stream_t *p_stream, sout_stream_id_sys_t *id )
{
sout_stream_sys_t *p_sys = p_stream->p_sys;
Finish( p_stream );
if ( p_sys->id == id ) /* not assuming only 1 id is in use.. */
p_sys->id = NULL;
free( id );
- return VLC_SUCCESS;
}
static int Send( sout_stream_t *p_stream, sout_stream_id_sys_t *id,
}
-static int Del(sout_stream_t *p_stream, sout_stream_id_sys_t *id)
+static void Del(sout_stream_t *p_stream, sout_stream_id_sys_t *id)
{
sout_stream_sys_t *p_sys = p_stream->p_sys;
- return p_sys->p_out->pf_del(p_sys->p_out, id);
+
+ p_sys->p_out->pf_del(p_sys->p_out, id);
}
return id;
}
-static int Del(sout_stream_t *stream, sout_stream_id_sys_t *id)
+static void Del(sout_stream_t *stream, sout_stream_id_sys_t *id)
{
sout_stream_sys_t *sys = stream->p_sys;
es_format_Clean(&id->fmt);
free(id);
- return VLC_SUCCESS;
}
static int AddStream(sout_stream_t *stream, char *chain)
};
static sout_stream_id_sys_t *Add ( sout_stream_t *, es_format_t * );
-static int Del ( sout_stream_t *, sout_stream_id_sys_t * );
+static void Del ( sout_stream_t *, sout_stream_id_sys_t * );
static int Send ( sout_stream_t *, sout_stream_id_sys_t *, block_t * );
struct sout_stream_sys_t
return p_stream->p_next->pf_add( p_stream->p_next, p_fmt );
}
-static int Del( sout_stream_t *p_stream, sout_stream_id_sys_t *id )
+static void Del( sout_stream_t *p_stream, sout_stream_id_sys_t *id )
{
sout_stream_sys_t *p_sys = (sout_stream_sys_t *)p_stream->p_sys;
if ( id == p_sys->id )
p_sys->id = NULL;
- return p_stream->p_next->pf_del( p_stream->p_next, id );
+ p_stream->p_next->pf_del( p_stream->p_next, id );
}
static int Send( sout_stream_t *p_stream, sout_stream_id_sys_t *id,
static void Close ( vlc_object_t * );
static sout_stream_id_sys_t *Add ( sout_stream_t *, es_format_t * );
-static int Del ( sout_stream_t *, sout_stream_id_sys_t * );
+static void Del ( sout_stream_t *, sout_stream_id_sys_t * );
static int Send( sout_stream_t *, sout_stream_id_sys_t *, block_t* );
/*****************************************************************************
return (void *)p_fmt_copy;
}
-static int Del( sout_stream_t *p_stream, sout_stream_id_sys_t *id )
+static void Del( sout_stream_t *p_stream, sout_stream_id_sys_t *id )
{
msg_Dbg( p_stream, "Removing a stream" );
/* NOTE: id should be freed by the input manager, not here. */
(void) id;
- return VLC_SUCCESS;
}
static int Send( sout_stream_t *p_stream, sout_stream_id_sys_t *id,
};
static sout_stream_id_sys_t *Add ( sout_stream_t *, es_format_t * );
-static int Del ( sout_stream_t *, sout_stream_id_sys_t * );
+static void Del ( sout_stream_t *, sout_stream_id_sys_t * );
static int Send( sout_stream_t *, sout_stream_id_sys_t *, block_t* );
struct sout_stream_sys_t
return (sout_stream_id_sys_t *)p_dec;
}
-static int Del( sout_stream_t *p_stream, sout_stream_id_sys_t *id )
+static void Del( sout_stream_t *p_stream, sout_stream_id_sys_t *id )
{
(void) p_stream;
input_DecoderDelete( (decoder_t *)id );
- return VLC_SUCCESS;
}
static int Send( sout_stream_t *p_stream, sout_stream_id_sys_t *id,
static void Close ( vlc_object_t * );
static sout_stream_id_sys_t *Add ( sout_stream_t *, es_format_t * );
-static int Del ( sout_stream_t *, sout_stream_id_sys_t * );
+static void Del ( sout_stream_t *, sout_stream_id_sys_t * );
static int Send( sout_stream_t *, sout_stream_id_sys_t *, block_t* );
/*****************************************************************************
return malloc( 1 );
}
-static int Del( sout_stream_t *p_stream, sout_stream_id_sys_t *id )
+static void Del( sout_stream_t *p_stream, sout_stream_id_sys_t *id )
{
VLC_UNUSED(p_stream);
free( id );
-
- return VLC_SUCCESS;
}
static int Send( sout_stream_t *p_stream, sout_stream_id_sys_t *id,
* Exported prototypes
*****************************************************************************/
static sout_stream_id_sys_t *Add ( sout_stream_t *, es_format_t * );
-static int Del ( sout_stream_t *, sout_stream_id_sys_t * );
+static void Del ( sout_stream_t *, sout_stream_id_sys_t * );
static int Send( sout_stream_t *, sout_stream_id_sys_t *,
block_t* );
/*****************************************************************************
* Del:
*****************************************************************************/
-static int Del( sout_stream_t *p_stream, sout_stream_id_sys_t *id )
+static void Del( sout_stream_t *p_stream, sout_stream_id_sys_t *id )
{
sout_stream_sys_t *p_sys = p_stream->p_sys;
int i_stream;
free( id->pp_ids );
free( id );
- return VLC_SUCCESS;
}
/*****************************************************************************
};
static sout_stream_id_sys_t *Add ( sout_stream_t *, es_format_t * );
-static int Del ( sout_stream_t *, sout_stream_id_sys_t * );
+static void Del ( sout_stream_t *, sout_stream_id_sys_t * );
static int Send( sout_stream_t *, sout_stream_id_sys_t *, block_t* );
struct sout_stream_sys_t
return id;
}
-static int Del( sout_stream_t *p_stream, sout_stream_id_sys_t *id )
+static void Del( sout_stream_t *p_stream, sout_stream_id_sys_t *id )
{
VLC_UNUSED(p_stream);
sout_access_out_t *p_access = id->p_mux->p_access;
sout_AccessOutDelete( p_access );
free( id );
- return VLC_SUCCESS;
}
static int Send( sout_stream_t *p_stream, sout_stream_id_sys_t *id,
* Exported prototypes
*****************************************************************************/
static sout_stream_id_sys_t *Add ( sout_stream_t *, es_format_t * );
-static int Del ( sout_stream_t *, sout_stream_id_sys_t * );
+static void Del ( sout_stream_t *, sout_stream_id_sys_t * );
static int Send( sout_stream_t *, sout_stream_id_sys_t *, block_t* );
struct sout_stream_id_sys_t
/*****************************************************************************
* Del:
*****************************************************************************/
-static int Del( sout_stream_t *p_stream, sout_stream_id_sys_t *id )
+static void Del( sout_stream_t *p_stream, sout_stream_id_sys_t *id )
{
VLC_UNUSED(p_stream);
id->b_used = false;
- return VLC_SUCCESS;
}
/*****************************************************************************
};
static sout_stream_id_sys_t *Add ( sout_stream_t *, es_format_t * );
-static int Del ( sout_stream_t *, sout_stream_id_sys_t * );
+static void Del ( sout_stream_t *, sout_stream_id_sys_t * );
static int Send ( sout_stream_t *, sout_stream_id_sys_t *, block_t * );
struct sout_stream_sys_t
return p_stream->p_next->pf_add( p_stream->p_next, p_fmt );
}
-static int Del( sout_stream_t *p_stream, sout_stream_id_sys_t *id )
+static void Del( sout_stream_t *p_stream, sout_stream_id_sys_t *id )
{
sout_stream_sys_t *p_sys = (sout_stream_sys_t *)p_stream->p_sys;
if ( id == p_sys->p_id ) p_sys->p_id = NULL;
if ( id == p_sys->p_telx ) p_sys->p_telx = NULL;
- return p_stream->p_next->pf_del( p_stream->p_next, id );
+ p_stream->p_next->pf_del( p_stream->p_next, id );
}
static void SetLanguage( sout_stream_t *p_stream, char *psz_language )
static int Open ( vlc_object_t * );
static void Close ( vlc_object_t * );
static sout_stream_id_sys_t *Add ( sout_stream_t *, es_format_t * );
-static int Del ( sout_stream_t *, sout_stream_id_sys_t * );
+static void Del ( sout_stream_t *, sout_stream_id_sys_t * );
static int Send( sout_stream_t *, sout_stream_id_sys_t *, block_t * );
inline static int video_update_format_decoder( decoder_t *p_dec );
return (sout_stream_id_sys_t *)p_sys;
}
-static int Del( sout_stream_t *p_stream, sout_stream_id_sys_t *id )
+static void Del( sout_stream_t *p_stream, sout_stream_id_sys_t *id )
{
VLC_UNUSED(id);
sout_stream_sys_t *p_sys = p_stream->p_sys;
int i;
if( !p_sys->b_inited )
- return VLC_SUCCESS;
+ return;
if( p_sys->p_decoder != NULL )
{
}
p_sys->b_inited = false;
-
- return VLC_SUCCESS;
}
/*****************************************************************************
static void Close( vlc_object_t * );
static sout_stream_id_sys_t *Add( sout_stream_t *, es_format_t * );
-static int Del( sout_stream_t *, sout_stream_id_sys_t * );
+static void Del( sout_stream_t *, sout_stream_id_sys_t * );
static int Send( sout_stream_t *, sout_stream_id_sys_t *, block_t* );
static int VolumeCallback( vlc_object_t *p_this, char const *psz_cmd,
/*****************************************************************************
* Del:
*****************************************************************************/
-static int Del( sout_stream_t *p_stream, sout_stream_id_sys_t *id )
+static void Del( sout_stream_t *p_stream, sout_stream_id_sys_t *id )
{
sout_stream_sys_t *p_sys = p_stream->p_sys;
- int i_err = VLC_SUCCESS;
if ( p_sys->p_audio_stream == id )
p_sys->p_audio_stream = NULL;
FreeId( id );
-
- return i_err;
}
/* */
static sout_stream_id_sys_t *Add ( sout_stream_t *, es_format_t * );
-static int Del ( sout_stream_t *, sout_stream_id_sys_t * );
+static void Del ( sout_stream_t *, sout_stream_id_sys_t * );
static int Send( sout_stream_t *, sout_stream_id_sys_t *, block_t* );
/* */
return id;
}
-static int Del( sout_stream_t *p_stream, sout_stream_id_sys_t *id )
+static void Del( sout_stream_t *p_stream, sout_stream_id_sys_t *id )
{
sout_stream_sys_t *p_sys = p_stream->p_sys;
}
free( id );
-
- return VLC_SUCCESS;
}
static int Send( sout_stream_t *p_stream, sout_stream_id_sys_t *id,
};
static sout_stream_id_sys_t *Add ( sout_stream_t *, es_format_t * );
-static int Del ( sout_stream_t *, sout_stream_id_sys_t * );
+static void Del ( sout_stream_t *, sout_stream_id_sys_t * );
static int Send( sout_stream_t *, sout_stream_id_sys_t *,
block_t* );
static sout_stream_id_sys_t *MuxAdd ( sout_stream_t *, es_format_t * );
-static int MuxDel ( sout_stream_t *, sout_stream_id_sys_t * );
+static void MuxDel ( sout_stream_t *, sout_stream_id_sys_t * );
static int MuxSend( sout_stream_t *, sout_stream_id_sys_t *,
block_t* );
return NULL;
}
-static int Del( sout_stream_t *p_stream, sout_stream_id_sys_t *id )
+static void Del( sout_stream_t *p_stream, sout_stream_id_sys_t *id )
{
sout_stream_sys_t *p_sys = p_stream->p_sys;
if( p_sys->psz_sdp_file != NULL ) FileSetup( p_stream );
free( id );
- return VLC_SUCCESS;
}
static int Send( sout_stream_t *p_stream, sout_stream_id_sys_t *id,
/** Remove an ES from a non-RTP muxed stream */
-static int MuxDel( sout_stream_t *p_stream, sout_stream_id_sys_t *id )
+static void MuxDel( sout_stream_t *p_stream, sout_stream_id_sys_t *id )
{
sout_mux_t *p_mux = p_stream->p_sys->p_mux;
assert( p_mux != NULL );
sout_MuxDeleteStream( p_mux, (sout_input_t *)id );
- return VLC_SUCCESS;
}
static sout_stream_id_sys_t *AddId ( sout_stream_t *, es_format_t * );
static sout_stream_id_sys_t *AddLang ( sout_stream_t *, es_format_t * );
-static int Del ( sout_stream_t *, sout_stream_id_sys_t * );
+static void Del ( sout_stream_t *, sout_stream_id_sys_t * );
static int Send ( sout_stream_t *, sout_stream_id_sys_t *, block_t * );
struct sout_stream_sys_t
return p_stream->p_next->pf_add( p_stream->p_next, p_fmt );
}
-static int Del( sout_stream_t *p_stream, sout_stream_id_sys_t *id )
+static void Del( sout_stream_t *p_stream, sout_stream_id_sys_t *id )
{
- return p_stream->p_next->pf_del( p_stream->p_next, id );
+ p_stream->p_next->pf_del( p_stream->p_next, id );
}
static int Send( sout_stream_t *p_stream, sout_stream_id_sys_t *id,
};
static sout_stream_id_sys_t *Add ( sout_stream_t *, es_format_t * );
-static int Del ( sout_stream_t *, sout_stream_id_sys_t * );
+static void Del ( sout_stream_t *, sout_stream_id_sys_t * );
static int Send( sout_stream_t *, sout_stream_id_sys_t *, block_t* );
static sout_stream_id_sys_t *AddVideo( sout_stream_t *p_stream, es_format_t *p_fmt );
return id;
}
-static int Del( sout_stream_t *p_stream, sout_stream_id_sys_t *id )
+static void Del( sout_stream_t *p_stream, sout_stream_id_sys_t *id )
{
VLC_UNUSED( p_stream );
free( id );
- return VLC_SUCCESS;
}
static int Send( sout_stream_t *p_stream, sout_stream_id_sys_t *id,
return (sout_stream_id_sys_t*)sout_MuxAddStream( p_stream->p_sys->p_mux, p_fmt );
}
-static int Del( sout_stream_t *p_stream, sout_stream_id_sys_t *id )
+static void Del( sout_stream_t *p_stream, sout_stream_id_sys_t *id )
{
sout_MuxDeleteStream( p_stream->p_sys->p_mux, (sout_input_t*)id );
- return VLC_SUCCESS;
}
static int Send( sout_stream_t *p_stream, sout_stream_id_sys_t *id,
};
static sout_stream_id_sys_t *Add ( sout_stream_t *, es_format_t * );
-static int Del ( sout_stream_t *, sout_stream_id_sys_t * );
+static void Del ( sout_stream_t *, sout_stream_id_sys_t * );
static int Send ( sout_stream_t *, sout_stream_id_sys_t *, block_t * );
struct sout_stream_sys_t
return id;
}
-static int Del( sout_stream_t *p_stream, sout_stream_id_sys_t *id )
+static void Del( sout_stream_t *p_stream, sout_stream_id_sys_t *id )
{
sout_stream_sys_t *p_sys = (sout_stream_sys_t *)p_stream->p_sys;
free( outputhash );
if( id->next_id ) sout_StreamIdDel( p_stream->p_next, id->next_id );
free( id );
-
- return VLC_SUCCESS;
}
static int Send( sout_stream_t *p_stream, sout_stream_id_sys_t *id,
* Exported prototypes
*****************************************************************************/
static sout_stream_id_sys_t *Add ( sout_stream_t *, es_format_t * );
-static int Del ( sout_stream_t *, sout_stream_id_sys_t * );
+static void Del ( sout_stream_t *, sout_stream_id_sys_t * );
static int Send( sout_stream_t *, sout_stream_id_sys_t *, block_t* );
/*****************************************************************************
return NULL;
}
-static int Del( sout_stream_t *p_stream, sout_stream_id_sys_t *id )
+static void Del( sout_stream_t *p_stream, sout_stream_id_sys_t *id )
{
sout_stream_sys_t *p_sys = p_stream->p_sys;
id->p_encoder = NULL;
}
free( id );
-
- return VLC_SUCCESS;
}
static int Send( sout_stream_t *p_stream, sout_stream_id_sys_t *id,