Release audio holds at video EOF and stop Android batches promptly
This commit is contained in:
1 parent
b2efab9806
commit
32e648ea9e
2 files changed
+3
-1
No files matched your search
@@ -316,7 +316,7 @@ void StreamPlayerWindow::decode() {
|
||||
work.codec += codecUs; work.codecMax = std::max(work.codecMax, codecUs);
|
||||
if (result == AVERROR(EAGAIN)) return;
|
||||
if (result == AVERROR_EOF) {
|
||||
std::lock_guard<std::mutex> guard(p.lock); p.videoEnded = true;
|
||||
std::lock_guard<std::mutex> guard(p.lock); p.videoEnded = true; p.holdAudio = false;
|
||||
DEBUG_INFO(DEBUG_CATEGORY_VIDEO, "desktop decoder drained id=%llu decoded=%llu", (unsigned long long)p.id,
|
||||
(unsigned long long)decoded); return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user