From 8cfbd3604fac14f629244e521ad24ffa9938c790 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Wed, 10 Dec 2008 08:57:10 +0000 Subject: Use cookies for thread identification instead of pointers directly which gives a buffer against wrongly identifying a thread when the slot is recycled (which has been nagging me for awhile). A slot gets 255 uses before it repeats. Everything gets incompatible so a full update is required. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19377 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/mpegplayer/disk_buf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/plugins/mpegplayer/disk_buf.h') diff --git a/apps/plugins/mpegplayer/disk_buf.h b/apps/plugins/mpegplayer/disk_buf.h index b6399c81d1..e16939a92e 100644 --- a/apps/plugins/mpegplayer/disk_buf.h +++ b/apps/plugins/mpegplayer/disk_buf.h @@ -62,7 +62,7 @@ struct dbuf_range * playback events as well as buffering */ struct disk_buf { - struct thread_entry *thread; + unsigned int thread; struct event_queue *q; uint8_t *start; /* Start pointer */ uint8_t *end; /* End of buffer pointer less MPEG_GUARDBUF_SIZE. The -- cgit v1.2.3