Release audio holds at video EOF and stop Android batches promptly

This commit is contained in:
evgeny committed 2026-10-21 00:15:34 +02:00
1 parent b2efab9806
commit 32e648ea9e
2 files changed
+3 -1

No files matched your search

+1 -1
View File
@@ -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;
}