player: emit PLAYLIST event when stream tag changes
Commitb3e2635a
introduced a regression: when a stream tag was changed, the playlist version had to be updated. This was done in syncCurrentPlayerDecodeMetadata(), called by syncPlayerAndPlaylist(). Afterb3e2635a
, this was not called anymore. Fix this by emitting PIPE_EVENT_PLAYLIST.
This commit is contained in:
parent
38bf81285f
commit
6d2e4f4e72
@ -116,6 +116,9 @@ static int player_wait_for_decoder(struct player *player)
|
|||||||
player->queued = false;
|
player->queued = false;
|
||||||
player->decoder_starting = true;
|
player->decoder_starting = true;
|
||||||
|
|
||||||
|
/* call syncPlaylistWithQueue() in the main thread */
|
||||||
|
event_pipe_emit(PIPE_EVENT_PLAYLIST);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -242,6 +245,10 @@ play_chunk(struct song *song, struct music_chunk *chunk,
|
|||||||
if (old_tag != NULL)
|
if (old_tag != NULL)
|
||||||
tag_free(old_tag);
|
tag_free(old_tag);
|
||||||
|
|
||||||
|
/* the main thread will update the playlist
|
||||||
|
version when he receives this event */
|
||||||
|
event_pipe_emit(PIPE_EVENT_PLAYLIST);
|
||||||
|
|
||||||
/* notify all clients that the tag of the
|
/* notify all clients that the tag of the
|
||||||
current song has changed */
|
current song has changed */
|
||||||
idle_add(IDLE_PLAYER);
|
idle_add(IDLE_PLAYER);
|
||||||
|
Loading…
Reference in New Issue
Block a user