diff options
Diffstat (limited to 'apps/plugins/mpegplayer/mpeg_misc.h')
-rw-r--r-- | apps/plugins/mpegplayer/mpeg_misc.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/plugins/mpegplayer/mpeg_misc.h b/apps/plugins/mpegplayer/mpeg_misc.h index 7bac7eb255..5f60193d52 100644 --- a/apps/plugins/mpegplayer/mpeg_misc.h +++ b/apps/plugins/mpegplayer/mpeg_misc.h | |||
@@ -28,6 +28,8 @@ | |||
28 | #define ALIGNED_ATTR(x) __attribute__((aligned(x))) | 28 | #define ALIGNED_ATTR(x) __attribute__((aligned(x))) |
29 | #endif | 29 | #endif |
30 | 30 | ||
31 | #include "disk_buf.h" | ||
32 | |||
31 | /* Generic states for when things are too simple to care about naming them */ | 33 | /* Generic states for when things are too simple to care about naming them */ |
32 | enum state_enum | 34 | enum state_enum |
33 | { | 35 | { |
@@ -158,11 +160,15 @@ struct stream_scan | |||
158 | off_t dir; /* Direction - >= 0; forward, < 0 backward */ | 160 | off_t dir; /* Direction - >= 0; forward, < 0 backward */ |
159 | ssize_t margin; /* Used by function to track margin between position and data end */ | 161 | ssize_t margin; /* Used by function to track margin between position and data end */ |
160 | intptr_t data; /* */ | 162 | intptr_t data; /* */ |
163 | struct dbuf_l2_cache l2; | ||
161 | }; | 164 | }; |
162 | 165 | ||
163 | #define SSCAN_REVERSE (-1) | 166 | #define SSCAN_REVERSE (-1) |
164 | #define SSCAN_FORWARD 1 | 167 | #define SSCAN_FORWARD 1 |
165 | 168 | ||
169 | /* Initializes the cursor */ | ||
170 | void stream_scan_init(struct stream_scan *sk); | ||
171 | |||
166 | /* Ensures direction is -1 or 1 and margin is properly initialized */ | 172 | /* Ensures direction is -1 or 1 and margin is properly initialized */ |
167 | void stream_scan_normalize(struct stream_scan *sk); | 173 | void stream_scan_normalize(struct stream_scan *sk); |
168 | 174 | ||