Add checking of keyframeinterval to Ready()

This commit is contained in:
Isaac Connor
2023-08-14 12:56:48 -04:00
parent c5eec8fa12
commit 9034bdffee

View File

@@ -704,6 +704,10 @@ public:
}
inline const char *EventPrefix() const { return event_prefix.c_str(); }
inline bool Ready() const {
if (packetqueue.has_out_of_order_packets() and !packetqueue.get_max_keyframe_interval()) {
Debug(1, "Have out of order packets, but no keyframe interval.");
return false;
}
if (image_count >= ready_count) {
return true;
}