summaryrefslogtreecommitdiff
path: root/src/bin/main.c
diff options
context:
space:
mode:
authorFlavio Ceolin <flavio.ceolin@gmail.com>2014-08-28 16:19:14 -0300
committerFlavio Ceolin <flavio.ceolin@gmail.com>2014-08-28 16:31:44 -0300
commit0a8136c3cdb2444f141504d0201180701fb7526f (patch)
tree5d8357d202b8483fdb1be6c2acfaba638a3db2de /src/bin/main.c
parent1eb97bade85944673b1c9ba814bf351f4ef2fb85 (diff)
emix: Make backend's init function returns boolean
It's necessary for who is using the library be able to take an action when the backend fails.
Diffstat (limited to '')
-rw-r--r--src/bin/main.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/bin/main.c b/src/bin/main.c
index b74940b..3045268 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -17,9 +17,15 @@ elm_main(int argc EINA_UNUSED, char *argv[] EINA_UNUSED)
17 evas_object_resize(win, DEFAULT_WIDTH, DEFAULT_HEIGHT); 17 evas_object_resize(win, DEFAULT_WIDTH, DEFAULT_HEIGHT);
18 evas_object_show(win); 18 evas_object_show(win);
19 19
20 emix_backend_set("PULSEAUDIO"); 20 if (emix_backend_set("PULSEAUDIO") == EINA_FALSE)
21 {
22 ERR("Could not start the backend !");
23 goto end;
24 }
25
21 elm_run(); 26 elm_run();
22 27
28end:
23 emixer_common_shutdown(); 29 emixer_common_shutdown();
24 emix_shutdown(); 30 emix_shutdown();
25 return 0; 31 return 0;