summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <marcel-hollerbach@t-online.de>2015-02-25 23:30:18 +0100
committerFlavio Ceolin <flavio.ceolin@gmail.com>2015-03-07 18:51:03 -0300
commitd6288acee6ccce475fe4f3836c7f83091a90ba4c (patch)
tree0c16611360a98a7a5b0e565a14efa42ece8cd6a6
parent5dcef203bc7be777f6d6c216f02dd820a8913766 (diff)
alsa: call the ready even at the end
We are just ready when all sinks and sources are detected.
-rw-r--r--src/lib/backends/alsa/alsa.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/backends/alsa/alsa.c b/src/lib/backends/alsa/alsa.c
index 5bbd028..59d77b8 100644
--- a/src/lib/backends/alsa/alsa.c
+++ b/src/lib/backends/alsa/alsa.c
@@ -194,7 +194,7 @@ _alsa_device_sink_create(const char *name, const char* hw_name,
194 { 194 {
195 ctx->cb((void *)ctx->userdata, EMIX_SINK_ADDED_EVENT, 195 ctx->cb((void *)ctx->userdata, EMIX_SINK_ADDED_EVENT,
196 (Emix_Sink *)sink); 196 (Emix_Sink *)sink);
197 ctx->cb((void *)ctx->userdata, EMIX_READY_EVENT, NULL); 197
198 } 198 }
199 ctx->sinks = eina_list_append(ctx->sinks, sink); 199 ctx->sinks = eina_list_append(ctx->sinks, sink);
200 return sink; 200 return sink;
@@ -340,6 +340,9 @@ _alsa_init(Emix_Event_Cb cb, const void *data)
340 ctx->cb = cb; 340 ctx->cb = cb;
341 ctx->userdata = data; 341 ctx->userdata = data;
342 342
343 //call the event because the backend is now ready to use
344 ctx->cb((void *)ctx->userdata, EMIX_READY_EVENT, NULL);
345
343 return EINA_TRUE; 346 return EINA_TRUE;
344} 347}
345 348