Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SoundSource.cpp: return AVERROR_EOF when buffer is empty #747

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Lihis
Copy link
Contributor

@Lihis Lihis commented Dec 1, 2023

On latest master (0f83c16) when I click "start new game", nothing happens.

Debugged this a bit it seems the avformat_find_stream_info hangs in SoundSource.cpp. Looks like the read_packet function is called over and over again even the functions returns 0.

But if AVERROR_EOF is returned when the buffer is empty, it fixes the hanging for me. Is this related some API change or something else? Would need to figure it out..

@okias
Copy link

okias commented Nov 26, 2024

Reviewed-by: David Heidelberg <[email protected]>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants