comparison src/wav/wav-sndfile.c @ 667:836cbe95ec5d trunk

[svn] - make use of playlist->eof effectively.
author nenolod
date Sat, 17 Feb 2007 20:57:15 -0800
parents a06edd6bfde6
children baa22cb0216d
comparison
equal deleted inserted replaced
666:a06edd6bfde6 667:836cbe95ec5d
185 185
186 g_cond_signal(decode_start_cond); 186 g_cond_signal(decode_start_cond);
187 } 187 }
188 else 188 else
189 { 189 {
190 g_cond_timed_wait(decode_cond, 190 playback->eof = TRUE;
191 decode_mutex, &sleeptime); 191 playback->playing = FALSE;
192 192
193 if (playback->playing == FALSE) 193 g_mutex_unlock(decode_mutex);
194 { 194 break;
195 g_mutex_unlock(decode_mutex);
196 break;
197 }
198 } 195 }
199 196
200 /* Do seek if seek_time is valid. */ 197 /* Do seek if seek_time is valid. */
201 if (seek_time > 0) 198 if (seek_time > 0)
202 { 199 {