diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-06-12 13:47:35 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-06-12 13:47:35 +0100 |
| commit | bdbfd6b08856a445446bfd845f1c43109d184250 (patch) | |
| tree | b894142ddd3e6dfc16c4b934e730f0ef9b518646 /src/lib/video_decoder.cc | |
| parent | ad27e9acc3d99a29fdc358da62feb603983f8882 (diff) | |
Remove PassReason stuff.
This feels wrong: it means that it is possible for FFmpegDecoder
to discard packets. I can't see how this is ok in all cases:
maybe we were lucky that it worked at all.
Diffstat (limited to 'src/lib/video_decoder.cc')
| -rw-r--r-- | src/lib/video_decoder.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/video_decoder.cc b/src/lib/video_decoder.cc index 6393fcbb2..9d165ab02 100644 --- a/src/lib/video_decoder.cc +++ b/src/lib/video_decoder.cc @@ -96,7 +96,7 @@ VideoDecoder::get_video (Frame frame, bool accurate) break; } - if (pass (PASS_REASON_VIDEO)) { + if (pass ()) { /* The decoder has nothing more for us */ break; } @@ -113,7 +113,7 @@ VideoDecoder::get_video (Frame frame, bool accurate) dec = decoded_video (frame); } else { /* Any frame will do: use the first one that comes out of pass() */ - while (_decoded_video.empty() && !pass (PASS_REASON_VIDEO)) {} + while (_decoded_video.empty() && !pass ()) {} if (!_decoded_video.empty ()) { dec.push_back (_decoded_video.front ()); } |
