player_thread: don't free music buffer after decoder failure
The music_buffer is a global variable, and must not be freed until the player thread exits.
This commit is contained in:
parent
3291666b57
commit
eeb54a5f35
|
@ -518,7 +518,6 @@ static void do_play(void)
|
||||||
player_stop_decoder();
|
player_stop_decoder();
|
||||||
player_command_finished();
|
player_command_finished();
|
||||||
music_pipe_free(player.pipe);
|
music_pipe_free(player.pipe);
|
||||||
music_buffer_free(player_buffer);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue