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

decoder not stopped on audio_player_stop() #27

Open
karawin opened this issue Sep 22, 2017 · 0 comments
Open

decoder not stopped on audio_player_stop() #27

karawin opened this issue Sep 22, 2017 · 0 comments

Comments

@karawin
Copy link

karawin commented Sep 22, 2017

I think it is better to add some lines like these:
void audio_player_start()
{
renderer_start();
//added--------------
player_instance->media_stream->eof = false;
//----------------------
player_instance->command = CMD_START;
player_status = RUNNING;
}

void audio_player_stop()
{
renderer_stop();
player_instance->command = CMD_STOP;
//added---------------
player_instance->media_stream->eof = true;
//------------------------------------
player_status = STOPPED;
}

Otherwise the decoder is not halted if media_stream->eof is not set .
I don't use web_radio.c. (that's why;-)

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

No branches or pull requests

1 participant