Mercurial > audlegacy-plugins
changeset 667:836cbe95ec5d trunk
[svn] - make use of playlist->eof effectively.
author | nenolod |
---|---|
date | Sat, 17 Feb 2007 20:57:15 -0800 |
parents | a06edd6bfde6 |
children | 622c63a5c191 |
files | ChangeLog src/wav/wav-sndfile.c |
diffstat | 2 files changed, 12 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Sat Feb 17 20:50:45 2007 -0800 +++ b/ChangeLog Sat Feb 17 20:57:15 2007 -0800 @@ -1,3 +1,11 @@ +2007-02-18 04:50:45 +0000 William Pitcock <nenolod@sacredspiral.co.uk> + revision [1418] + - some further adjustments + + trunk/src/wav/wav-sndfile.c | 22 +++++++++++++++++----- + 1 file changed, 17 insertions(+), 5 deletions(-) + + 2007-02-18 04:42:10 +0000 William Pitcock <nenolod@sacredspiral.co.uk> revision [1416] Rewrote the entire plugin:
--- a/src/wav/wav-sndfile.c Sat Feb 17 20:50:45 2007 -0800 +++ b/src/wav/wav-sndfile.c Sat Feb 17 20:57:15 2007 -0800 @@ -187,14 +187,11 @@ } else { - g_cond_timed_wait(decode_cond, - decode_mutex, &sleeptime); + playback->eof = TRUE; + playback->playing = FALSE; - if (playback->playing == FALSE) - { - g_mutex_unlock(decode_mutex); - break; - } + g_mutex_unlock(decode_mutex); + break; } /* Do seek if seek_time is valid. */