tizenaudio-sink/source: Fix crash when access pcm handle 54/78254/5
authorKimJeongYeon <jeongyeon.kim@samsung.com>
Tue, 5 Jul 2016 01:47:50 +0000 (10:47 +0900)
committerKimJeongYeon <jeongyeon.kim@samsung.com>
Tue, 5 Jul 2016 05:01:18 +0000 (14:01 +0900)
commitf4508c51fc6256542a913426b1c7accec778bfb7
tree0b1ee453022d32531f3d200084f95c401a4e39c0
parente99a5601fac705da4722c1b5b31f5506235407ee
tizenaudio-sink/source: Fix crash when access pcm handle

build_pollfd() trying to access u->pcm_handle at sink_process_msg() at module loading step.
But, sometimes the device wasn't open yet. (e.g factory reset, power on, ...)
Therefore, null access to u->pcm_handle causes crash.
I think device need to be opened prior to starting sink's message handler.

[Version] 5.0.61
[Profile] Common
[Issue Type] Bug fix

Signed-off-by: KimJeongYeon <jeongyeon.kim@samsung.com>
Change-Id: I060319c261176bb46f7b1c0804322d4d8c491071
packaging/pulseaudio-modules-tizen.spec
src/module-tizenaudio-sink.c
src/module-tizenaudio-source.c