diff options
author | Eric Wong <normalperson@yhbt.net> | 2008-04-12 04:08:29 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-04-12 04:08:29 +0000 |
commit | efa464235613c6f3bfd40179d3676dd913feeafe (patch) | |
tree | dd1399ff950fff7be918a0487da95896c2819868 /src/playerData.c | |
parent | b3230404892539192be974e632c63a5d5548f735 (diff) | |
download | mpd-efa464235613c6f3bfd40179d3676dd913feeafe.tar.gz mpd-efa464235613c6f3bfd40179d3676dd913feeafe.tar.xz mpd-efa464235613c6f3bfd40179d3676dd913feeafe.zip |
Start using song pointers in core data structures
Instead of copying URLs everywhere...
[merged r7186 from branches/ew]
git-svn-id: https://svn.musicpd.org/mpd/trunk@7244 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r-- | src/playerData.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/playerData.c b/src/playerData.c index 43852a4c6..718b28771 100644 --- a/src/playerData.c +++ b/src/playerData.c @@ -107,9 +107,8 @@ void initPlayerData(void) playerData_pd->playerControl.queueLockState = PLAYER_QUEUE_UNLOCKED; playerData_pd->playerControl.seek = 0; playerData_pd->playerControl.closeAudio = 0; - memset(playerData_pd->playerControl.utf8url, 0, MPD_PATH_MAX); - memset(playerData_pd->playerControl.erroredUrl, 0, MPD_PATH_MAX); - memset(playerData_pd->playerControl.currentUrl, 0, MPD_PATH_MAX); + playerData_pd->playerControl.current_song = NULL; + playerData_pd->playerControl.errored_song = NULL; playerData_pd->playerControl.crossFade = crossfade; playerData_pd->playerControl.softwareVolume = 1000; playerData_pd->playerControl.totalPlayTime = 0; @@ -119,7 +118,7 @@ void initPlayerData(void) playerData_pd->decoderControl.state = DECODE_STATE_STOP; playerData_pd->decoderControl.seek = 0; playerData_pd->decoderControl.error = DECODE_ERROR_NOERROR; - memset(playerData_pd->decoderControl.utf8url, 0, MPD_PATH_MAX); + playerData_pd->decoderControl.current_song = NULL; } PlayerData *getPlayerData(void) |