fix: packet queue waits for a video keyframe, not an audio packet refs #6435

This commit is contained in:
Jash committed 2026-11-16 16:04:58 +05:30
1 parent 4810e25903
commit 50cc5760c2
2 files changed
+34 -1

No files matched your search

+2 -1
View File
@@ -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;
}