From b197c3b0d6bfcf3daae4a7b1cad415b1acea28f6 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Sun, 16 May 2010 14:41:00 +0000 Subject: 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 --- apps/plugins/mpegplayer/mpeg_misc.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'apps/plugins/mpegplayer/mpeg_misc.c') 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 @@ /** Streams **/ +/* Initializes the cursor */ +void stream_scan_init(struct stream_scan *sk) +{ + dbuf_l2_init(&sk->l2); +} + /* Ensures direction is -1 or 1 and margin is properly initialized */ void stream_scan_normalize(struct stream_scan *sk) { -- cgit v1.2.3