diff options
Diffstat (limited to 'lib/rbcodec/codecs/mpa.c')
-rw-r--r-- | lib/rbcodec/codecs/mpa.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/rbcodec/codecs/mpa.c b/lib/rbcodec/codecs/mpa.c index 07db248099..ca12087e87 100644 --- a/lib/rbcodec/codecs/mpa.c +++ b/lib/rbcodec/codecs/mpa.c | |||
@@ -346,6 +346,11 @@ enum codec_status codec_run(void) | |||
346 | current_frequency = ci->id3->frequency; | 346 | current_frequency = ci->id3->frequency; |
347 | codec_set_replaygain(ci->id3); | 347 | codec_set_replaygain(ci->id3); |
348 | 348 | ||
349 | if (!ci->id3->offset && ci->id3->elapsed) { | ||
350 | /* Have elapsed time but not offset */ | ||
351 | ci->id3->offset = get_file_pos(ci->id3->elapsed); | ||
352 | } | ||
353 | |||
349 | if (ci->id3->offset) { | 354 | if (ci->id3->offset) { |
350 | ci->seek_buffer(ci->id3->offset); | 355 | ci->seek_buffer(ci->id3->offset); |
351 | set_elapsed(ci->id3); | 356 | set_elapsed(ci->id3); |