else if( !strcmp( sub->codecName(), "SPEEX" ) )
{
tk->fmt.i_codec = VLC_FOURCC( 's', 'p', 'x', 'r' );
- if ( tk->fmt.audio.i_rate == 0 )
- {
- msg_Warn( p_demux,"Using 8kHz as default sample rate." );
- tk->fmt.audio.i_rate = 8000;
- }
}
else if( !strcmp( sub->codecName(), "VORBIS" ) )
{
else
msg_Warn( p_demux,"Missing or unsupported vorbis header." );
}
+ else if( !strcmp( sub->codecName(), "OPUS" ) )
+ {
+ tk->fmt.i_codec = VLC_CODEC_OPUS;
+ }
}
else if( !strcmp( sub->mediumName(), "video" ) )
{
{
bool b;
es_out_Control( p_demux->out, ES_OUT_GET_ES_STATE, tk->p_es, &b );
- if( !b && tk->b_selected )
+ if( !b && tk->b_selected && p_sys->rtsp )
{
tk->b_selected = false;
p_sys->rtsp->sendTeardownCommand( *tk->sub, NULL );