diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-07-10 22:41:48 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-07-10 22:41:48 +0100 |
| commit | a8af9a0b57b853b8a8cd8fa35adb3fc967d59ee7 (patch) | |
| tree | 9493b374153de99bc220138361420c5abe85b16e /src/lib/ffmpeg_content.cc | |
| parent | 8d58a7c5f4320ad5c111e336c45e44d6b51ab509 (diff) | |
Add has_subtitles method to SubtitleContent; tidy up timeline display a bit.
Diffstat (limited to 'src/lib/ffmpeg_content.cc')
| -rw-r--r-- | src/lib/ffmpeg_content.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/ffmpeg_content.cc b/src/lib/ffmpeg_content.cc index d2bb329db..9b2bfc606 100644 --- a/src/lib/ffmpeg_content.cc +++ b/src/lib/ffmpeg_content.cc @@ -409,3 +409,9 @@ FFmpegContent::subtitles_during (ContentTimePeriod period, bool starting) const return d; } + +bool +FFmpegContent::has_subtitles () const +{ + return !subtitle_streams().empty (); +} |
