diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2009-10-03 17:15:03 +0200 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2009-10-03 17:15:03 +0200 |
commit | 8435239b97169828f95497dfebf180243efe6b70 (patch) | |
tree | ea83db146db02155b0c299698c040ff4758641a1 /streamer.c | |
parent | 107c24022634144e9872bb036920c66c863c6d78 (diff) |
fixed seeking in vfs_curl
Diffstat (limited to 'streamer.c')
-rw-r--r-- | streamer.c | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -316,16 +316,18 @@ streamer_thread (uintptr_t ctx) { bytes_until_next_song = -1; } + streamer_lock (); + streambuffer_fill = 0; + streambuffer_pos = 0; + codec_lock (); + codecleft = 0; + codec_unlock (); if (str_playing_song.decoder && str_playing_song.decoder->seek (pos) >= 0) { - streamer_lock (); + //streamer_lock (); playpos = str_playing_song.decoder->info.readpos; - streambuffer_fill = 0; - streambuffer_pos = 0; - streamer_unlock (); - codec_lock (); - codecleft = 0; - codec_unlock (); + //streamer_unlock (); } + streamer_unlock(); } // read ahead at 384K per second |