Skip to content

Commit

Permalink
MT#55283 fix possible NULL dereference
Browse files Browse the repository at this point in the history
closes #1883

Change-Id: Ic364b8d2bdd0f50438b121571d86660b88b2945e
(cherry picked from commit 03ef7a7)
(cherry picked from commit cfe95fe)
  • Loading branch information
rfuchs committed Dec 12, 2024
1 parent 28a7570 commit d737360
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daemon/media_player.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ static void media_player_shutdown(struct media_player *mp) {
mp->ssrc_out->parent->seq_diff -= num;
}

if (mp->opts.block_egress)
if (mp->opts.block_egress && mp->media)
MEDIA_CLEAR(mp->media, BLOCK_EGRESS);

mp->media = NULL;
Expand Down

0 comments on commit d737360

Please sign in to comment.