Skip to content

Commit

Permalink
rtpstream: Fix crash on rtp thread exit
Browse files Browse the repository at this point in the history
taskinfo can already be free at this point, so we cannot check all
max_tasks.

Fixes #743.
  • Loading branch information
orgads committed Sep 14, 2024
1 parent fdc0c97 commit 074214d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rtpstream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1315,7 +1315,7 @@ static void* rtpstream_playback_thread(void* params)
printAudioVector("----PACKET COUNTS----", rs_apackets);
printVideoVector("----PACKET COUNTS----", rs_vpackets);

for (unsigned int i = 0; i < threaddata->max_tasks; i++)
for (unsigned int i = 0; i < threaddata->num_tasks; i++)
{
taskinfo = (&threaddata->tasklist)[i];

Expand Down

0 comments on commit 074214d

Please sign in to comment.