diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-12-13 15:02:09 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-04-19 23:04:32 +0100 |
| commit | eb135e8dcdf36ae82420bcd18e954ad593b3e9a5 (patch) | |
| tree | f63742f6409c182482e7204aaf024ce93c63bc20 /src/lib/ffmpeg_decoder.cc | |
| parent | 22b13599407e45d85d1c83e0805aa14965b0ab19 (diff) | |
Reinstate subtitle list view.
Diffstat (limited to 'src/lib/ffmpeg_decoder.cc')
| -rw-r--r-- | src/lib/ffmpeg_decoder.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/ffmpeg_decoder.cc b/src/lib/ffmpeg_decoder.cc index 32903a20e..b7b70e061 100644 --- a/src/lib/ffmpeg_decoder.cc +++ b/src/lib/ffmpeg_decoder.cc @@ -116,7 +116,7 @@ FFmpegDecoder::flush () } } -void +bool FFmpegDecoder::pass () { int r = av_read_frame (_format_context, &_packet); @@ -134,7 +134,7 @@ FFmpegDecoder::pass () } flush (); - return; + return true; } int const si = _packet.stream_index; @@ -149,6 +149,7 @@ FFmpegDecoder::pass () } av_packet_unref (&_packet); + return false; } /** @param data pointer to array of pointers to buffers. |
