diff options
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; |
