Fix some lockup caused by handles not being initialized to < 0...
commit0ebfb937aaa073282415e561f8d1f150813a00fd
authorMichael Sevakis <jethead71@rockbox.org>
Mon, 21 May 2012 06:18:46 +0000 (21 02:18 -0400)
committerMichael Sevakis <jethead71@rockbox.org>
Mon, 21 May 2012 06:28:13 +0000 (21 02:28 -0400)
treeace0d47f3ee55c289a4b645986615ff9a281a1df
parent5f2618c363467648d96ccbc82e14df7d2194a148
Fix some lockup caused by handles not being initialized to < 0...

...by default where they would be interpreted as valid but not actually
be which would cause calls to buffering while it was not initialized.

Add BUFFER_EVENT_BUFFER_RESET to inform users of buffering that the
buffer is being reinitialized. Basically, this wraps all the
functionality being provided by three events (...START_PLAYBACK,
RECORDING_EVENT_START, RECORDING_EVENT_STOP) into one for radioart.c,
the only user of those events (perhaps remove them?) and closes some
loopholes.

Change-Id: I99ec46b9b5fb4e36605db5944c60ed986163db3a
apps/appevents.h
apps/buffering.c
apps/playback.c
apps/radio/radioart.c