summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 */