forked from len0rd/rockbox
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
This commit is contained in:
parent
9fde12676b
commit
fcf36dd4f9
15 changed files with 199 additions and 313 deletions
|
@ -35,8 +35,8 @@ struct stream_mgr
|
|||
bool seeked; /* A seek happened and things must be
|
||||
resynced */
|
||||
int status; /* Current playback status */
|
||||
struct list_item strl; /* List of available streams */
|
||||
struct list_item actl; /* List of active streams */
|
||||
void *strl[MPEGPLAYER_MAX_STREAMS+1]; /* List of available streams */
|
||||
void *actl[MPEGPLAYER_MAX_STREAMS+1]; /* List of active streams */
|
||||
struct mutex str_mtx; /* Main stream manager mutex */
|
||||
struct mutex actl_mtx; /* Lock for current-streams list */
|
||||
union /* A place for reusable non-cacheable parameters */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue