From 357c4f1e4d28a4738cb0050f80194dd9baedfc72 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Tue, 11 Feb 2025 11:22:38 -0400 Subject: [PATCH] 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 5f6609de5d6a1e655e1d19870f3b362c3f32b1d7) --- daemon/media_player.c | 1 + 1 file changed, 1 insertion(+) diff --git a/daemon/media_player.c b/daemon/media_player.c index ee4956a50..eed57ece6 100644 --- a/daemon/media_player.c +++ b/daemon/media_player.c @@ -823,6 +823,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");