diff options
Diffstat (limited to 'src/lib/decoder.cc')
| -rw-r--r-- | src/lib/decoder.cc | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/lib/decoder.cc b/src/lib/decoder.cc index abb4d13a1..e154aac5d 100644 --- a/src/lib/decoder.cc +++ b/src/lib/decoder.cc @@ -310,12 +310,22 @@ Decoder::process_video (AVFrame* frame) } TIMING ("Decoder emits %1", _video_frame_index); - Video ((*i), _video_frame_index, sub); + Video (*i, _video_frame_index, sub); ++_video_frame_index; + _last_image = *i; + _last_subtitle = sub; } } void +Decoder::repeat_last_video () +{ + assert (_last_image); + Video (_last_image, _video_frame_index, _last_subtitle); + ++_video_frame_index; +} + +void Decoder::process_subtitle (shared_ptr<TimedSubtitle> s) { _timed_subtitle = s; |
