MT#55283 don't pick an unsupported PT for playback

Make sure we properly return a failure if no supported payload type is
present.

Change-Id: Ia483e0819b2d8ca0c2c5184c929dfe3d05c96ca1
(cherry picked from commit 5f6609de5d)
(cherry picked from commit e0d72cc445)
mr13.1.1
Richard Fuchs 10 months ago
parent 20195b85c3
commit bf37b2fddc

@ -828,6 +828,7 @@ static rtp_payload_type *media_player_get_dst_pt(struct media_player *mp) {
ensure_codec_def(dst_pt, mp->media);
if (codec_def_supported(dst_pt->codec_def) && !dst_pt->codec_def->supplemental)
goto found;
dst_pt = NULL;
}
if (!dst_pt) {
ilog(LOG_ERR, "No supported output codec found in SDP");

Loading…
Cancel
Save