Cleanup some jack server interactions
authorNelson Ferreira <nelson.ferreira@ieee.org>
Sun, 20 Jan 2013 22:21:40 +0000 (17:21 -0500)
committerNelson Ferreira <nelson.ferreira@ieee.org>
Sun, 20 Jan 2013 22:21:40 +0000 (17:21 -0500)
commitf70c41c0682f65023f3741058ba362b0913d8924
treeaa19bf17724908e4d5797c8b3fd72110585142d4
parent08117313a4d872ab08bdcfe033c46c5cb1feea71
Cleanup some jack server interactions

* src/media/sound-jack.c (sound_jack_subthread_create): Properly
close the client upon failure to complete subthread create.

* src/media/sound-jack.c (sound_jack_play): Improve
logging. Properly return status code of 0 upon success and 1 on
failure. Also cleanup the device data of the job.

* src/media/sound-jack.c (sound_jack_change_state): properly set
the state of the job upon start. Add code to the log of the
unknown event message.

* src/media/sound-jack.c (sound_jack_process): Lock the job while
processing the jack requests. Debug log the play state when draining

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
src/media/sound-jack.c