mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-12 02:40:00 +01:00
Bugfix timeline (prevent zero div)
This commit is contained in:
@@ -100,7 +100,7 @@ public:
|
||||
inline GstClockTime last() const { return timing_.end - step_; }
|
||||
inline GstClockTime step() const { return step_; }
|
||||
inline GstClockTime duration() const { return timing_.duration(); }
|
||||
inline size_t numFrames() const { return duration() / step_; }
|
||||
inline size_t numFrames() const { if (step_) return duration() / step_; else return 1; }
|
||||
inline TimeInterval interval() const { return timing_; }
|
||||
GstClockTime next(GstClockTime time) const;
|
||||
GstClockTime previous(GstClockTime time) const;
|
||||
|
||||
Reference in New Issue
Block a user