From cef07676fb15c9f1c3c3073d22f06ffe95d9c2ce Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 26 Feb 2016 21:06:27 +0000 Subject: Allow changes to colours of FFmpeg subtitles (#795). --- src/lib/ffmpeg_content.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/lib/ffmpeg_content.cc') diff --git a/src/lib/ffmpeg_content.cc b/src/lib/ffmpeg_content.cc index 9cd0395f2..789fd735f 100644 --- a/src/lib/ffmpeg_content.cc +++ b/src/lib/ffmpeg_content.cc @@ -505,3 +505,14 @@ FFmpegContent::add_properties (list& p) const p.push_back (UserProperty (_("Video"), _("Bits per pixel"), raw_convert (_bits_per_pixel.get ()))); } } + +/** Our subtitle streams have colour maps, which can be changed, but + * they have no way of signalling that change. As a hack, we have this + * method which callers can use when they've modified one of our subtitle + * streams. + */ +void +FFmpegContent::signal_subtitle_stream_changed () +{ + signal_changed (FFmpegContentProperty::SUBTITLE_STREAM); +} -- cgit v1.2.3