aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKazumasa Mitsunari <knimitz@witz-inc.co.jp>2017-12-12 11:04:51 +0900
committerKazumasa Mitsunari <knimitz@witz-inc.co.jp>2017-12-22 21:01:37 +0900
commit0fd8a3600fa44883bb43f86652e27136b75351da (patch)
treeafaf9e681eb616472baddd2975a6e4610c1f4a1d
parentd28e3c341d4da08787e0e0f014626a1b9dd5ed63 (diff)
Change-Id: Ibd59a74d4ae846ada167bd42c24cc3e74b040c44 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
-rw-r--r--src/soundmanager.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/soundmanager.c b/src/soundmanager.c
index 41bd271..a6da6a5 100644
--- a/src/soundmanager.c
+++ b/src/soundmanager.c
@@ -834,8 +834,11 @@ static void registerSource(struct afb_req request)
struct availability_s available; /* (ii) */
available.availability = DEFAULT_AVAILABLES; /* A_UNKNOWN */
available.avalilable_reason = 0; /* AR_UNKNOWN */
- guint16 interrupt = DEFAULT_INTERRUPT; /* q IS_OFF */
+ guint16 interrupt;
+ if(REQ_OK != get_value_int16(request, _INTERRUPT, &interrupt)){
+ interrupt = DEFAULT_INTERRUPT; /* q IS_OFF */
+ }
struct sound_property_s sound_property_list; /* a(in) */
sound_property_list.type = 0;
sound_property_list.value = 0; /* in reality, this is array of struct */