Commit 754241ed authored by Nicolas Michon's avatar Nicolas Michon

Correct codec support check dependent on video/capture and video/display parameters.

parent 484a02d1
......@@ -1657,6 +1657,12 @@ static bool_t linphone_core_codec_supported(LinphoneCore *lc, SalStreamType type
} else if (type == SalText) {
return TRUE;
if (lc->video_conf.capture && !lc->video_conf.display) {
return ms_factory_has_encoder(lc->factory, mime);
if (lc->video_conf.display && !lc->video_conf.capture) {
return ms_factory_has_decoder(lc->factory, mime);
return ms_factory_codec_supported(lc->factory, mime);
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