diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-05-04 16:52:48 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-05-04 16:52:48 +0100 |
| commit | 8a1042b767e2604b0af4850dd69fd6a848fd6ffe (patch) | |
| tree | 39560c1b93baad261de4324dced88b8e999ae371 /src/lib/playlist.cc | |
| parent | cd4a82d90677cec80e891ac190000cb70767446f (diff) | |
Add FFmpeg content dialog; moving ffmpeg-specific things out of the film editor.
Diffstat (limited to 'src/lib/playlist.cc')
| -rw-r--r-- | src/lib/playlist.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/playlist.cc b/src/lib/playlist.cc index 72745f220..63b44f9d6 100644 --- a/src/lib/playlist.cc +++ b/src/lib/playlist.cc @@ -416,3 +416,14 @@ Playlist::ffmpeg () const return shared_ptr<FFmpegContent> (); } + +bool +Playlist::has_subtitles () const +{ + shared_ptr<FFmpegContent> fc = ffmpeg (); + if (!fc) { + return false; + } + + return !fc->subtitle_streams().empty(); +} |
