Skip to content

Commit c294ad0

Browse files
Must obtain lock in free_it
1 parent 5d67c45 commit c294ad0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/zm_packetqueue.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -713,6 +713,7 @@ packetqueue_iterator * PacketQueue::get_video_it(bool wait) {
713713
} // get video_it
714714

715715
void PacketQueue::free_it(packetqueue_iterator *it) {
716+
std::unique_lock<std::mutex> lck(mutex);
716717
for (
717718
std::list<packetqueue_iterator *>::iterator iterators_it = iterators.begin();
718719
iterators_it != iterators.end();

0 commit comments

Comments
 (0)