summaryrefslogtreecommitdiff
path: root/src/lib/ffmpeg_decoder.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ffmpeg_decoder.cc')
-rw-r--r--src/lib/ffmpeg_decoder.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/ffmpeg_decoder.cc b/src/lib/ffmpeg_decoder.cc
index 4a6e236c3..075420b7c 100644
--- a/src/lib/ffmpeg_decoder.cc
+++ b/src/lib/ffmpeg_decoder.cc
@@ -366,7 +366,12 @@ FFmpegDecoder::pass ()
indicate that the previous subtitle should stop.
*/
if (sub.num_rects > 0) {
- emit_subtitle (shared_ptr<TimedSubtitle> (new TimedSubtitle (sub, _first_video.get())));
+ shared_ptr<TimedSubtitle> ts;
+ try {
+ emit_subtitle (shared_ptr<TimedSubtitle> (new TimedSubtitle (sub, _first_video.get())));
+ } catch (...) {
+ /* some problem with the subtitle; we probably didn't understand it */
+ }
} else {
emit_subtitle (shared_ptr<TimedSubtitle> ());
}