Commit bd8fdbcb authored by Yann Diorcet's avatar Yann Diorcet
Browse files

Better MS_DECODER_HAVE_PLC usage in audio_stream_start_full

parent 5eb3677d
......@@ -493,7 +493,11 @@ int audio_stream_start_full(AudioStream *stream, RtpProfile *profile, const char
/* Create PLC */
if ((stream->features & AUDIO_STREAM_FEATURE_PLC) != 0) {
int decoder_have_plc = 0;
if (ms_filter_call_method(stream->decoder, MS_DECODER_HAVE_PLC, &decoder_have_plc) != 0) {
if (ms_filter_has_method(stream->decoder, MS_DECODER_HAVE_PLC)) {
if (ms_filter_call_method(stream->decoder, MS_DECODER_HAVE_PLC, &decoder_have_plc) != 0) {
ms_warning("MS_DECODER_HAVE_PLC function error: enable default plc");
}
} else {
ms_warning("MS_DECODER_HAVE_PLC function not implemented by the decoder: enable default plc");
}
if (decoder_have_plc == 0)
......
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