diff options
author | waker <wakeroid@gmail.com> | 2009-08-16 21:43:45 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2009-08-16 21:43:45 +0200 |
commit | 090ea2c0ad39873550092bde1608ffc9ce31d296 (patch) | |
tree | 517a10cfdbbf666c05bbe97f9e08344e42bd9668 /cmp3.c | |
parent | 7a72b074f0f5108ff56a7ec770a58cc0bfca908b (diff) |
fixed flac/cue playback
Diffstat (limited to 'cmp3.c')
-rw-r--r-- | cmp3.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -111,7 +111,7 @@ cmp3_init (struct playItem_s *it) { buffer.output = NULL; buffer.readsize = 0; buffer.cachefill = 0; - cmp3.info.position = 0; + cmp3.info.readposition = 0; mad_timer_reset(&buffer.timer); fseek (buffer.file, buffer.startoffset, SEEK_SET); @@ -617,15 +617,15 @@ cmp3_seek (float time) { mad_timer_reset(&buffer.timer); if (time == 0) { - cmp3.info.position = 0; + cmp3.info.readposition = 0; return 0; } if (cmp3_scan_stream (&buffer, time) == -1) { - cmp3.info.position = 0; + cmp3.info.readposition = 0; return -1; } - cmp3.info.position = (float)buffer.timer.seconds + (float)buffer.timer.fraction / MAD_TIMER_RESOLUTION; + cmp3.info.readposition = (float)buffer.timer.seconds + (float)buffer.timer.fraction / MAD_TIMER_RESOLUTION; return 0; } |