summaryrefslogtreecommitdiff
path: root/apps/codecs
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2005-11-02 00:09:42 +0000
committerDave Chapman <dave@dchapman.com>2005-11-02 00:09:42 +0000
commit5006d15d1eb0ee735373786961dbb1e1c8cc5d22 (patch)
tree3589a2b49c8013b14627c350290871d10bd7e9de /apps/codecs
parent4158ba1ff13d623ee32b91efedd4d1d2212543e4 (diff)
Call ci->seek_complete() callback after processing a seek request (an old API change that wasn't implemented in all the codecs)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7717 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs')
-rw-r--r--apps/codecs/a52.c2
-rw-r--r--apps/codecs/aac.c2
-rw-r--r--apps/codecs/alac.c2
-rw-r--r--apps/codecs/flac.c2
-rw-r--r--apps/codecs/wav.c2
-rw-r--r--apps/codecs/wavpack.c2
6 files changed, 6 insertions, 6 deletions
diff --git a/apps/codecs/a52.c b/apps/codecs/a52.c
index c4d2d291ed..b658893023 100644
--- a/apps/codecs/a52.c
+++ b/apps/codecs/a52.c
@@ -168,7 +168,7 @@ next_track:
samplesdone = sample_loc;
ci->set_elapsed(samplesdone/(ci->id3->frequency/1000));
}
- ci->seek_time = 0;
+ ci->seek_complete();
}
filebuf = ci->request_buffer(&n, BUFFER_SIZE);
diff --git a/apps/codecs/aac.c b/apps/codecs/aac.c
index 98656f2487..9b07fb8d64 100644
--- a/apps/codecs/aac.c
+++ b/apps/codecs/aac.c
@@ -131,7 +131,7 @@ enum codec_status codec_start(struct codec_api* api)
elapsedtime=(samplesdone*10)/(ci->id3->frequency/100);
ci->set_elapsed(elapsedtime);
}
- ci->seek_time = 0;
+ ci->seek_complete();
}
/* Lookup the length (in samples and bytes) of block i */
diff --git a/apps/codecs/alac.c b/apps/codecs/alac.c
index af2694851f..dcad760f90 100644
--- a/apps/codecs/alac.c
+++ b/apps/codecs/alac.c
@@ -108,7 +108,7 @@ enum codec_status codec_start(struct codec_api* api)
elapsedtime=(samplesdone*10)/(ci->id3->frequency/100);
ci->set_elapsed(elapsedtime);
}
- ci->seek_time = 0;
+ ci->seek_complete();
}
/* Lookup the length (in samples and bytes) of block i */
diff --git a/apps/codecs/flac.c b/apps/codecs/flac.c
index 81785132a9..9d0f9cd5d4 100644
--- a/apps/codecs/flac.c
+++ b/apps/codecs/flac.c
@@ -275,7 +275,7 @@ enum codec_status codec_start(struct codec_api* api)
/* Refill the input buffer */
buf = ci->request_buffer(&bytesleft, MAX_FRAMESIZE);
}
- ci->seek_time = 0;
+ ci->seek_complete();
}
if((res=flac_decode_frame(&fc,decoded0,decoded1,buf,
diff --git a/apps/codecs/wav.c b/apps/codecs/wav.c
index 2e668a4e35..3955528155 100644
--- a/apps/codecs/wav.c
+++ b/apps/codecs/wav.c
@@ -446,7 +446,7 @@ enum codec_status codec_start(struct codec_api* api)
if (rb->seek_buffer(firstblockposn + newpos)) {
bytesdone = newpos;
}
- rb->seek_time = 0;
+ rb->seek_complete();
}
wavbuf=rb->request_buffer((long *)&n,chunksize);
wavbuf8 = (uint8_t*)wavbuf;
diff --git a/apps/codecs/wavpack.c b/apps/codecs/wavpack.c
index 507678c0da..fd346d28c8 100644
--- a/apps/codecs/wavpack.c
+++ b/apps/codecs/wavpack.c
@@ -124,7 +124,7 @@ enum codec_status codec_start(struct codec_api* api)
}
wpc = WavpackOpenFileInput (read_callback, error);
- ci->seek_time = 0;
+ ci->seek_complete();
if (!wpc)
break;