}
/* Open output stream */
- id->id = p_sys->p_out->pf_add( p_sys->p_out, &id->p_encoder->fmt_out );
+ id->id = sout_StreamIdAdd( p_sys->p_out, &id->p_encoder->fmt_out );
id->b_transcode = true;
if( !id->id )
}
/* open output stream */
- id->id = p_sys->p_out->pf_add( p_sys->p_out, &id->p_encoder->fmt_out );
+ id->id = sout_StreamIdAdd( p_sys->p_out, &id->p_encoder->fmt_out );
id->b_transcode = true;
if( !id->id )
{
msg_Dbg( p_stream, "not transcoding a stream (fcc=`%4.4s')",
(char*)&p_fmt->i_codec );
- id->id = p_sys->p_out->pf_add( p_sys->p_out, p_fmt );
+ id->id = sout_StreamIdAdd( p_sys->p_out, p_fmt );
id->b_transcode = false;
if( !id->id ) goto error;
}
}
- if( id->id ) p_sys->p_out->pf_del( p_sys->p_out, id->id );
+ if( id->id ) sout_StreamIdDel( p_sys->p_out, id->id );
if( id->p_decoder )
{
if( !id->b_transcode && id->id )
{
- return p_sys->p_out->pf_send( p_sys->p_out, id->id, p_buffer );
+ return sout_StreamIdSend( p_sys->p_out, id->id, p_buffer );
}
else if( !id->b_transcode )
{
break;
}
- if( p_out ) return p_sys->p_out->pf_send( p_sys->p_out, id->id, p_out );
+ if( p_out )
+ return sout_StreamIdSend( p_sys->p_out, id->id, p_out );
return VLC_SUCCESS;
}
id->p_encoder->fmt_out.i_codec = VLC_FOURCC('m','p','g','v');
}
- id->id = p_stream->p_sys->p_out->pf_add( p_stream->p_sys->p_out,
- &id->p_encoder->fmt_out );
+ id->id = sout_StreamIdAdd( p_stream->p_sys->p_out,
+ &id->p_encoder->fmt_out );
if( !id->id )
{
msg_Err( p_stream, "cannot add this stream" );
}
/* open output stream */
- id->id = p_sys->p_out->pf_add( p_sys->p_out, &id->p_encoder->fmt_out );
+ id->id = sout_StreamIdAdd( p_sys->p_out, &id->p_encoder->fmt_out );
id->b_transcode = true;
if( !id->id ) goto error;
{
msg_Dbg( p_stream, "not transcoding a stream (fcc=`%4.4s')",
(char*)&id->p_decoder->fmt_out.i_codec );
- id->id = p_sys->p_out->pf_add( p_sys->p_out, &id->p_decoder->fmt_out );
+ id->id = sout_StreamIdAdd( p_sys->p_out, &id->p_decoder->fmt_out );
id->b_transcode = false;
if( !id->id ) goto error;