diff options
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/codecmpa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/codecmpa.c b/apps/plugins/codecmpa.c index b152f2cb3e..67062bc40b 100644 --- a/apps/plugins/codecmpa.c +++ b/apps/plugins/codecmpa.c | |||
@@ -305,12 +305,12 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parm) | |||
305 | sample_loc = ci->seek_time/1000 * ci->id3->frequency; | 305 | sample_loc = ci->seek_time/1000 * ci->id3->frequency; |
306 | newpos = ci->mp3_get_filepos(ci->seek_time-1); | 306 | newpos = ci->mp3_get_filepos(ci->seek_time-1); |
307 | if (ci->seek_buffer(newpos)) { | 307 | if (ci->seek_buffer(newpos)) { |
308 | ci->seek_time = 0; | ||
309 | if (sample_loc >= samplecount + samplesdone) | 308 | if (sample_loc >= samplecount + samplesdone) |
310 | break ; | 309 | break ; |
311 | samplecount += samplesdone - sample_loc; | 310 | samplecount += samplesdone - sample_loc; |
312 | samplesdone = sample_loc; | 311 | samplesdone = sample_loc; |
313 | } | 312 | } |
313 | ci->seek_time = 0; | ||
314 | } | 314 | } |
315 | 315 | ||
316 | /* Lock buffers */ | 316 | /* Lock buffers */ |