From 7b12603f3c4fe8638f87684cff450e33f4dfd495 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) (cherry picked from commit 08b740fd4a9e7ef46cf2adeee0646273a96e20e0) --- daemon/media_player.c | 1 + 1 file changed, 1 insertion(+) diff --git a/daemon/media_player.c b/daemon/media_player.c index 93ef9ea40..178441fb1 100644 --- a/daemon/media_player.c +++ b/daemon/media_player.c @@ -899,6 +899,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");