mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-10-09 19:02:41 -04:00
Have to check for lock on video keyframe as well
This commit is contained in:
1 parent
baf39b0d4f
commit
a0df09dcaa
1 file changed
+5
@@ -117,6 +117,11 @@ bool zm_packetqueue::queuePacket(ZMPacket* add_packet) {
|
||||
if ( zm_packet->packet.stream_index == video_stream_id ) {
|
||||
if ( zm_packet->keyframe ) {
|
||||
Debug(1, "Have a video keyframe so breaking out");
|
||||
if ( !zm_packet->trylock() ) {
|
||||
Debug(1, "Have locked packet %d", zm_packet->image_index);
|
||||
video_stream_packets = max_video_packet_count;
|
||||
}
|
||||
zm_packet->unlock();
|
||||
break;
|
||||
}
|
||||
video_stream_packets ++;
|
||||
|
||||
Reference in new issue
Block a user