From b425de71df7acdc82b4e466a5bac709d0dc15f64 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Tue, 6 Mar 2007 20:32:13 +0000 Subject: Fix problem with recording screen creep and bag a bigfoot. Voice clips aren't long enough now to untrigger the thread boost that was supposed to be applied to the codec thread. The voice thread was needlessly boosting the codec thread and leaving it boosted which explains the encoders' ability to flood the output buffer when everything else was stopped in its tracks. Check which thread is calling pcmbuf_under_watermark and only initiate the boost when it's the codec thread. Always return the codec thread to its usual priority in pcmbuf_play_stop. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12649 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/thread.h | 1 + 1 file changed, 1 insertion(+) (limited to 'firmware/export') diff --git a/firmware/export/thread.h b/firmware/export/thread.h index 2ff4694159..3a979722b9 100644 --- a/firmware/export/thread.h +++ b/firmware/export/thread.h @@ -150,6 +150,7 @@ void wakeup_thread(struct thread_entry **thread); int thread_set_priority(struct thread_entry *thread, int priority); int thread_get_priority(struct thread_entry *thread); #endif +struct thread_entry * thread_get_current(void); void init_threads(void); int thread_stack_usage(const struct thread_entry *thread); int thread_get_status(const struct thread_entry *thread); -- cgit v1.2.3