mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-05-24 22:47:06 -04:00
Add checking of keyframeinterval to Ready()
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user