Skip to content

Commit

Permalink
Must obtain lock in free_it
Browse files Browse the repository at this point in the history
  • Loading branch information
Isaac Connor committed Aug 7, 2024
1 parent 5d67c45 commit c294ad0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/zm_packetqueue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -713,6 +713,7 @@ packetqueue_iterator * PacketQueue::get_video_it(bool wait) {
} // get video_it

void PacketQueue::free_it(packetqueue_iterator *it) {
std::unique_lock<std::mutex> lck(mutex);
for (
std::list<packetqueue_iterator *>::iterator iterators_it = iterators.begin();
iterators_it != iterators.end();
Expand Down

0 comments on commit c294ad0

Please sign in to comment.