From 1a5b04e4e83640cd0a58d4e49fe755598af73262 Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Mon, 31 May 2004 23:29:35 +0000 Subject: some stream metadata fixes git-svn-id: https://svn.musicpd.org/mpd/trunk@1266 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/playerData.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/playerData.c') diff --git a/src/playerData.c b/src/playerData.c index f37792914..d78a208b4 100644 --- a/src/playerData.c +++ b/src/playerData.c @@ -110,10 +110,16 @@ void initPlayerData() { playerData_pd->playerControl.seek = 0; memset(playerData_pd->playerControl.utf8url, 0, MAXPATHLEN+1); memset(playerData_pd->playerControl.erroredUrl, 0, MAXPATHLEN+1); + memset(playerData_pd->playerControl.currentUrl, 0, MAXPATHLEN+1); + memset(playerData_pd->playerControl.metadata, 0, + DECODE_METADATA_LENGTH); playerData_pd->playerControl.crossFade = crossfade; playerData_pd->playerControl.softwareVolume = 1000; playerData_pd->playerControl.totalPlayTime = 0; playerData_pd->playerControl.decode_pid = 0; + playerData_pd->playerControl.title = -1; + playerData_pd->playerControl.metadataState = + PLAYER_METADATA_STATE_WRITE; playerData_pd->decoderControl.stop = 0; playerData_pd->decoderControl.start = 0; @@ -122,7 +128,7 @@ void initPlayerData() { playerData_pd->decoderControl.error = DECODE_ERROR_NOERROR; memset(playerData_pd->decoderControl.utf8url, 0, MAXPATHLEN+1); memset(playerData_pd->decoderControl.metadata, 0, - DECODE_METADATA_LENGTH); + DECODE_METADATA_LENGTH); playerData_pd->decoderControl.title = -1; playerData_pd->decoderControl.metadataSet = 0; } -- cgit v1.2.3