From 3765c3066e1389ccc7f6c9e767d36a37d80ec04d 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 b30c4e960..92c574a9f 100644 --- a/daemon/media_player.c +++ b/daemon/media_player.c @@ -680,6 +680,7 @@ static struct 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");