diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-06-26 01:21:21 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-06-26 17:04:31 +0100 |
| commit | 09a9ac376db005a40a351736bcff4077f098825d (patch) | |
| tree | 64ea69741155d15d114ad96daf0f90e24b3abe28 /src/lib/ffmpeg_content.h | |
| parent | 46cd0fe7b5b514f0d9456b25f670679cc584a218 (diff) | |
Another try at sorting out the thorny question of timing.
Diffstat (limited to 'src/lib/ffmpeg_content.h')
| -rw-r--r-- | src/lib/ffmpeg_content.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/lib/ffmpeg_content.h b/src/lib/ffmpeg_content.h index 36c24c2b3..c5ccee77a 100644 --- a/src/lib/ffmpeg_content.h +++ b/src/lib/ffmpeg_content.h @@ -46,7 +46,7 @@ public: int frame_rate; int channels; AudioMapping mapping; - boost::optional<Time> start; + boost::optional<double> first_audio; }; extern bool operator== (FFmpegAudioStream const & a, FFmpegAudioStream const & b); @@ -99,7 +99,7 @@ public: /* AudioContent */ int audio_channels () const; - ContentAudioFrame audio_length () const; + AudioContent::Frame audio_length () const; int content_audio_frame_rate () const; int output_audio_frame_rate () const; AudioMapping audio_mapping () const; @@ -134,6 +134,11 @@ public: void set_subtitle_stream (boost::shared_ptr<FFmpegSubtitleStream>); void set_audio_stream (boost::shared_ptr<FFmpegAudioStream>); + + boost::optional<Time> first_video () const { + boost::mutex::scoped_lock lm (_mutex); + return _first_video; + } private: std::vector<boost::shared_ptr<FFmpegSubtitleStream> > _subtitle_streams; |
