mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-12-01 04:38:35 -05:00
fix: packet queue waits for a video keyframe, not an audio packet refs #6435
This commit is contained in:
1 parent
4810e25903
commit
50cc5760c2
2 files changed
+34
-1
No files matched your search
@@ -95,7 +95,8 @@ bool PacketQueue::queuePacket(std::shared_ptr<ZMPacket> add_packet) {
|
||||
Debug(4, "No iterators so no one needs us to queue packets.");
|
||||
return false;
|
||||
}
|
||||
if (!packet_counts[video_stream_id] and !add_packet->keyframe) {
|
||||
if (!packet_counts[video_stream_id]
|
||||
and !(add_packet->keyframe and add_packet->packet->stream_index == video_stream_id)) {
|
||||
Debug(4, "No video keyframe so no one needs us to queue packets.");
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user