diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-05-26 10:41:51 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-05-26 10:41:51 +0100 |
| commit | 917eaf28db474a4c605eaaa8347a3e9a86b70aa0 (patch) | |
| tree | 1f1512740bfe90ffd3c5dee0e4c3c065a5803d31 /src/lib/ffmpeg_subtitle_stream.cc | |
| parent | d0a8ad99117ef265561e1b6d4cfee2704cbbbb03 (diff) | |
Tidy up image/text subtitle distinction with FFmpeg sources.
Diffstat (limited to 'src/lib/ffmpeg_subtitle_stream.cc')
| -rw-r--r-- | src/lib/ffmpeg_subtitle_stream.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/lib/ffmpeg_subtitle_stream.cc b/src/lib/ffmpeg_subtitle_stream.cc index f00254ae2..6028d10a9 100644 --- a/src/lib/ffmpeg_subtitle_stream.cc +++ b/src/lib/ffmpeg_subtitle_stream.cc @@ -197,3 +197,15 @@ FFmpegSubtitleStream::set_colour (RGBA from, RGBA to) { _colours[from] = to; } + +bool +FFmpegSubtitleStream::has_text () const +{ + return !_text_subtitles.empty (); +} + +bool +FFmpegSubtitleStream::has_image () const +{ + return !_image_subtitles.empty (); +} |
