From 0330d9b2924767d9240c5a25e9ed4327eb0a73bd Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 18 Dec 2012 21:13:10 +0000 Subject: Try to tidy up subtitle timing and seeks wrt source frames, DCP frames and rounding. --- src/lib/video_decoder.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/lib/video_decoder.h') diff --git a/src/lib/video_decoder.h b/src/lib/video_decoder.h index f682941d1..97bbb0e48 100644 --- a/src/lib/video_decoder.h +++ b/src/lib/video_decoder.h @@ -45,7 +45,7 @@ public: void set_progress () const; - SourceFrame video_frame () const { + int video_frame () const { return _video_frame; } @@ -57,15 +57,15 @@ public: return _subtitle_streams; } - SourceFrame last_source_frame () const { - return _last_source_frame; + double last_source_time () const { + return _last_source_time; } protected: virtual PixelFormat pixel_format () const = 0; - void emit_video (boost::shared_ptr, SourceFrame); + void emit_video (boost::shared_ptr, double); void emit_subtitle (boost::shared_ptr); void repeat_last_video (); @@ -77,8 +77,8 @@ protected: private: void signal_video (boost::shared_ptr, boost::shared_ptr); - SourceFrame _video_frame; - SourceFrame _last_source_frame; + int _video_frame; + double _last_source_time; boost::shared_ptr _timed_subtitle; -- cgit v1.2.3