aboutsummaryrefslogtreecommitdiffstats
path: root/4a-hal/4a-hal-controllers/4a-hal-controllers-mixer-link.c
diff options
context:
space:
mode:
Diffstat (limited to '4a-hal/4a-hal-controllers/4a-hal-controllers-mixer-link.c')
-rw-r--r--4a-hal/4a-hal-controllers/4a-hal-controllers-mixer-link.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/4a-hal/4a-hal-controllers/4a-hal-controllers-mixer-link.c b/4a-hal/4a-hal-controllers/4a-hal-controllers-mixer-link.c
index 165bb42..807dbb8 100644
--- a/4a-hal/4a-hal-controllers/4a-hal-controllers-mixer-link.c
+++ b/4a-hal/4a-hal-controllers/4a-hal-controllers-mixer-link.c
@@ -107,6 +107,14 @@ int HalCtlsHandleMixerData(AFB_ApiT apiHandle, struct CtlHalMixerDataT *currentM
currentMixerDataT->data[idx].verb);
err += (int) MIXER_ERROR_STREAM_VERB_NOT_CREATED;
}
+
+ currentMixerDataT->data[idx].event = AFB_EventMake(apiHandle, currentMixerDataT->data[idx].verb);
+ if(! AFB_EventIsValid(currentMixerDataT->data[idx].event)) {
+ AFB_ApiError(apiHandle,
+ "Error while creating event for stream : '%s'",
+ currentMixerDataT->data[idx].verb);
+ err += (int) MIXER_ERROR_STREAM_EVENT_NOT_CREATED;
+ }
}
else if(dataType == MIXER_DATA_PLAYBACKS) {
currentMixerDataT->data[idx].verb = strdup(HAL_PLAYBACK_ID);