NuppelVideoPlayer::GetAudioBufferStatus returns a false if it failed.
From: Erik Hovland <erik@hovland.org>
It should be reported.
---
libs/libmythtv/avformatdecoder.cpp | 17 ++++++++++-------
1 files changed, 10 insertions(+), 7 deletions(-)
diff --git a/libs/libmythtv/avformatdecoder.cpp b/libs/libmythtv/avformatdecoder.cpp
index 46a898d..4f325b0 100644
a
|
b
|
bool AvFormatDecoder::GetFrame(int onlyvideo) |
3541 | 3541 | if (!allowedquit && (onlyvideo < 0)) |
3542 | 3542 | { |
3543 | 3543 | uint fill, total; |
3544 | | GetNVP()->GetAudioBufferStatus(fill, total); |
3545 | | total /= 6; // HACK needed for some audio files |
3546 | | allowedquit = |
3547 | | (fill == 0) || (fill > (total>>1)) || |
3548 | | ((total - fill) < (uint) data_size) || |
3549 | | (ofill + total_decoded_audio > (total>>2)) || |
3550 | | ((total - fill) < (uint) data_size * 2); |
| 3544 | if (GetNVP()->GetAudioBufferStatus(fill, total)) { |
| 3545 | total /= 6; // HACK needed for some audio files |
| 3546 | allowedquit = |
| 3547 | (fill == 0) || (fill > (total>>1)) || |
| 3548 | ((total - fill) < (uint) data_size) || |
| 3549 | (ofill + total_decoded_audio > (total>>2)) || |
| 3550 | ((total - fill) < (uint) data_size * 2); |
| 3551 | } else |
| 3552 | VERBOSE(VB_IMPORTANT, LOC_ERR + "AvFormatDecoder::GetFrame : " |
| 3553 | "Failed topping off buffers in audio only mode"); |
3551 | 3554 | } |
3552 | 3555 | |
3553 | 3556 | break; |