Handle memory allocation error in scan setup

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
Fix state change on player start

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>