diff options
| author | Michael Sevakis <jethead71@rockbox.org> | 2010-05-17 12:34:05 +0000 |
|---|---|---|
| committer | Michael Sevakis <jethead71@rockbox.org> | 2010-05-17 12:34:05 +0000 |
| commit | fcf36dd4f9879a82342e5606535d2dcf46d1de2a (patch) | |
| tree | 21ed249c7a6f9d0bd7e2049c7a9f9e0708ba28f8 /apps/plugins/mpegplayer/stream_thread.h | |
| parent | 9fde12676b382a31a10c58e2473edfde460e4d73 (diff) | |
| download | rockbox-fcf36dd4f9879a82342e5606535d2dcf46d1de2a.zip rockbox-fcf36dd4f9879a82342e5606535d2dcf46d1de2a.tar.gz rockbox-fcf36dd4f9879a82342e5606535d2dcf46d1de2a.tar.bz2 rockbox-fcf36dd4f9879a82342e5606535d2dcf46d1de2a.tar.xz | |
Simplify mpegplayer a bit and use array-based lists rather than linked lists for stream management. Move a couple useful functions to handle pointer arrays from kernel.c into general.c; mpeglayer now makes use of them.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26101 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/mpegplayer/stream_thread.h')
| -rw-r--r-- | apps/plugins/mpegplayer/stream_thread.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/apps/plugins/mpegplayer/stream_thread.h b/apps/plugins/mpegplayer/stream_thread.h index 30bf46e..1d3a445 100644 --- a/apps/plugins/mpegplayer/stream_thread.h +++ b/apps/plugins/mpegplayer/stream_thread.h @@ -39,7 +39,6 @@ struct stream_hdr off_t pos; /* Start/current position for random-access read */ }; off_t limit; /* Limit for random-access read */ - struct list_item nf; /* List for data notification */ }; struct stream @@ -48,8 +47,6 @@ struct stream unsigned int thread; /* Stream's thread */ uint8_t* curr_packet; /* Current stream packet beginning */ uint8_t* curr_packet_end; /* Current stream packet end */ - struct list_item l; /* List of streams - either reserve pool - or active pool */ int state; /* State machine parsing mode */ uint32_t start_pts; /* First timestamp for stream */ uint32_t end_pts; /* Last timestamp for stream */ @@ -58,6 +55,8 @@ struct stream unsigned id; /* Stream identifier */ }; +#define STR_FROM_HDR(sh) ((struct stream *)(sh)) + /* Make sure there there is always enough data buffered ahead for * the worst possible case - regardless of whether a valid stream * would actually produce that */ @@ -145,8 +144,6 @@ enum stream_status STREAM_NOT_FOUND, /* Match not found */ }; -#define STR_FROM_HEADER(sh) ((struct stream *)(sh)) - /* Clip time to range for a particular stream */ static inline uint32_t clip_time(struct stream *str, uint32_t time) { |