mirror of
https://github.com/starr-dusT/yuzu-mainline
synced 2024-03-05 21:12:25 -08:00
android: audio_core: sink_stream: Remove unnecessary check.
This commit is contained in:
parent
cb95d7fe1b
commit
069d7e6be4
@ -273,13 +273,10 @@ void SinkStream::WaitFreeSpace(std::stop_token stop_token) {
|
|||||||
std::unique_lock lk{release_mutex};
|
std::unique_lock lk{release_mutex};
|
||||||
release_cv.wait_for(lk, std::chrono::milliseconds(5),
|
release_cv.wait_for(lk, std::chrono::milliseconds(5),
|
||||||
[this]() { return queued_buffers < max_queue_size; });
|
[this]() { return queued_buffers < max_queue_size; });
|
||||||
#ifndef ANDROID
|
|
||||||
// This wait can cause a problematic shutdown hang on Android.
|
|
||||||
if (queued_buffers > max_queue_size + 3) {
|
if (queued_buffers > max_queue_size + 3) {
|
||||||
Common::CondvarWait(release_cv, lk, stop_token,
|
Common::CondvarWait(release_cv, lk, stop_token,
|
||||||
[this] { return queued_buffers < max_queue_size; });
|
[this] { return queued_buffers < max_queue_size; });
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace AudioCore::Sink
|
} // namespace AudioCore::Sink
|
||||||
|
Loading…
Reference in New Issue
Block a user