diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2010-05-16 14:41:00 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2010-05-16 14:41:00 +0000 |
commit | b197c3b0d6bfcf3daae4a7b1cad415b1acea28f6 (patch) | |
tree | 1c7bce8c4bc39617ff819111d39a41370ca8f49b /apps/plugins/mpegplayer/mpeg_misc.c | |
parent | caa4f54e4235f99acd1c69673c85a4557b6183a9 (diff) | |
download | rockbox-b197c3b0d6bfcf3daae4a7b1cad415b1acea28f6.tar.gz rockbox-b197c3b0d6bfcf3daae4a7b1cad415b1acea28f6.zip |
MPEGPlayer: Add a second layer of caching to help speed up byte-wise scanning and seeking a bit.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26088 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/mpegplayer/mpeg_misc.c')
-rw-r--r-- | apps/plugins/mpegplayer/mpeg_misc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/plugins/mpegplayer/mpeg_misc.c b/apps/plugins/mpegplayer/mpeg_misc.c index fd564a49c3..8e6ccf650f 100644 --- a/apps/plugins/mpegplayer/mpeg_misc.c +++ b/apps/plugins/mpegplayer/mpeg_misc.c | |||
@@ -25,6 +25,12 @@ | |||
25 | 25 | ||
26 | /** Streams **/ | 26 | /** Streams **/ |
27 | 27 | ||
28 | /* Initializes the cursor */ | ||
29 | void stream_scan_init(struct stream_scan *sk) | ||
30 | { | ||
31 | dbuf_l2_init(&sk->l2); | ||
32 | } | ||
33 | |||
28 | /* Ensures direction is -1 or 1 and margin is properly initialized */ | 34 | /* Ensures direction is -1 or 1 and margin is properly initialized */ |
29 | void stream_scan_normalize(struct stream_scan *sk) | 35 | void stream_scan_normalize(struct stream_scan *sk) |
30 | { | 36 | { |