Do not set metadataState to PLAYER_METADATA_STATE_READ when decoding stops.
This fixes a bug where streams that won't play somehow appear with the metadata of a previously played stream. As far as I can tell, the only reason this is done is to sync any buffered metadata with the displayed metadata when decoding stops, so there should be no other adverse effects. git-svn-id: https://svn.musicpd.org/mpd/trunk@5161 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
9bdb0b0df2
commit
ab789982d3
@ -76,7 +76,6 @@ static void stopDecode(DecoderControl * dc)
|
||||
static void quitDecode(PlayerControl * pc, DecoderControl * dc)
|
||||
{
|
||||
stopDecode(dc);
|
||||
pc->metadataState = PLAYER_METADATA_STATE_READ;
|
||||
pc->state = PLAYER_STATE_STOP;
|
||||
dc->seek = 0;
|
||||
pc->play = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user