comparison src/xmms-sid.c @ 809:8f155eca3612

Shut down/delete player resources at reinit.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 07 Nov 2012 12:46:16 +0200
parents 13483b855058
children d508c7c4bc69
comparison
equal deleted inserted replaced
808:fd5a8759923e 809:8f155eca3612
138 XS_MUTEX_UNLOCK(xs_status); 138 XS_MUTEX_UNLOCK(xs_status);
139 } 139 }
140 140
141 XS_MUTEX_LOCK(xs_status); 141 XS_MUTEX_LOCK(xs_status);
142 XS_MUTEX_LOCK(xs_cfg); 142 XS_MUTEX_LOCK(xs_cfg);
143
144 // Close player stuff
145 xs_tuneinfo_free(xs_status.tuneInfo);
146 xs_status.tuneInfo = NULL;
147 if (xs_status.engine != NULL)
148 {
149 xs_status.engine->plrDeleteSID(&xs_status);
150 xs_status.engine->plrClose(&xs_status);
151 }
143 152
144 /* Initialize status and sanitize configuration */ 153 /* Initialize status and sanitize configuration */
145 memset(&xs_status, 0, sizeof(xs_status)); 154 memset(&xs_status, 0, sizeof(xs_status));
146 155
147 if (xs_cfg.audioFrequency < 8000) 156 if (xs_cfg.audioFrequency < 8000)