opensles: ensure that we register the callback only in STOPPED
authorJosep Torra <n770galaxy@gmail.com>
Thu, 27 Sep 2012 16:33:09 +0000 (18:33 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 18 Oct 2012 12:03:09 +0000 (14:03 +0200)
commit97a1ccfab1cb360140ea3e9a1c80ea6d8757030f
tree1087b7a031f27d12c455a36bdb76605372f23b0d
parente265cec514dfce6bf8ef5927a7b3aae45920e9cc
opensles: ensure that we register the callback only in STOPPED

Fixes the error registering the callback on the PLAYING -> PAUSE ->
PLAYING state change sequence.
sys/opensles/openslesringbuffer.c
sys/opensles/openslesringbuffer.h