Commit 0936413d authored by Sylvain Berfini's avatar Sylvain Berfini 🎩
Browse files

Fix SIGSEV issue

parent e110f766
......@@ -546,11 +546,12 @@ int audio_stream_start_full(AudioStream *stream, RtpProfile *profile, const char
}
if (decoder_have_plc == 0) {
stream->plc = ms_filter_new(MS_GENERIC_PLC_ID);
ms_filter_call_method(stream->plc, MS_FILTER_SET_NCHANNELS, &pt->channels);
}
if (stream->plc)
if (stream->plc) {
ms_filter_call_method(stream->plc, MS_FILTER_SET_NCHANNELS, &pt->channels);
ms_filter_call_method(stream->plc, MS_FILTER_SET_SAMPLE_RATE, &sample_rate);
}
} else {
stream->plc = NULL;
}
......
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