ao: not start AO when receiving EOF data. #13243
Open
+8
−4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When mpv resumes audio from underrun state, if the first audio data contains EOF. mpv may get stuck in an infinite loop.
ao->buffer_state->playing
is true and does not change anymore, repeatblocked, waiting for old audio to play
on the function fill_audio_out_buffers().Pulse Audio continues to request data and calls stream_request_cb(). pa_stream_writable_size() continues to increase. mpv hangs and cannot play video, until
Failed to allocate buffer
.buffer.c: To resolve this issue, not start AO when receiving EOF data.
Fixes: #13242
Read this before you submit this pull request:
https://github.com/mpv-player/mpv/blob/master/DOCS/contribute.md
Reading this link and following the rules will get your pull request reviewed
and merged faster. Nobody wants lazy pull requests.