Add some synchronisation to prevent some deadlocks and race conditions.
commit7f5f264e9ac5b63dfa9ee0d614b6ab2b31e411f6
authorNicolas Pennequin <nicolas@nicolas-laptop.(none)>
Tue, 16 Oct 2007 21:18:44 +0000 (16 23:18 +0200)
committerlearman <learman@a1c6a512-1295-4272-9138-f99709370657>
Thu, 25 Oct 2007 19:18:20 +0000 (25 19:18 +0000)
tree94d0299e8a6ac268b3118e56ac23feb6dff8c454
parentd78fcf92faab30c8424d8f1054815212dd3543b4
Add some synchronisation to prevent some deadlocks and race conditions.

* The buffering thread now has a message queue to allow the codec thread to
  send a message requesting for immediate buffering of a handle.
* Make the codec loading from disk send instead of post so that we're sure
  the codec is loaded before we attempt to play.

Issue: When the codec thread requests immediate buffering of a handle, it
has to wait for the entire file to finish buffering.
apps/buffering.c
apps/buffering.h
apps/playback.c