summaryrefslogtreecommitdiffstats
path: root/src/soundmanager.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soundmanager.c')
-rw-r--r--src/soundmanager.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/soundmanager.c b/src/soundmanager.c
index cf165e3..cb33854 100644
--- a/src/soundmanager.c
+++ b/src/soundmanager.c
@@ -1260,15 +1260,15 @@ int sm_init()
ev_removed_main_connection = afb_daemon_make_event(cmd_evlist[2]);
ev_sink_mute_state_changed = afb_daemon_make_event(cmd_evlist[3]);
ev_main_connection_state_changed = afb_daemon_make_event(cmd_evlist[4]);
- command_event_list[0].name = cmd_evlist[0];
+ command_event_list[0].name = strdup(cmd_evlist[0]);
command_event_list[0].event = &ev_volume_changed;
- command_event_list[1].name = cmd_evlist[1];
+ command_event_list[1].name = strdup(cmd_evlist[1]);
command_event_list[1].event = &ev_new_connection;
- command_event_list[2].name = cmd_evlist[2];
+ command_event_list[2].name = strdup(cmd_evlist[2]);
command_event_list[2].event = &ev_removed_main_connection;
- command_event_list[3].name = cmd_evlist[3];
+ command_event_list[3].name = strdup(cmd_evlist[3]);
command_event_list[3].event = &ev_sink_mute_state_changed;
- command_event_list[4].name = cmd_evlist[4];
+ command_event_list[4].name = strdup(cmd_evlist[4]);
command_event_list[4].event = &ev_main_connection_state_changed;
/* create routing event */
@@ -1278,15 +1278,15 @@ int sm_init()
ev_async_set_source_state = afb_daemon_make_event(route_evlist[3]);
ev_async_disconnect = afb_daemon_make_event(route_evlist[4]);
- routing_event_list[0].name = route_evlist[0];
+ routing_event_list[0].name = strdup(route_evlist[0]);
routing_event_list[0].event = &ev_set_routing_ready;
- routing_event_list[1].name = route_evlist[1];
+ routing_event_list[1].name = strdup(route_evlist[1]);
routing_event_list[1].event = &ev_set_routing_rundown;
- routing_event_list[2].name = route_evlist[2];
+ routing_event_list[2].name = strdup(route_evlist[2]);
routing_event_list[2].event = &ev_async_connect;
- routing_event_list[3].name = route_evlist[3];
+ routing_event_list[3].name = strdup(route_evlist[3]);
routing_event_list[3].event = &ev_async_set_source_state;
- routing_event_list[4].name = route_evlist[4];
+ routing_event_list[4].name = strdup(route_evlist[4]);
routing_event_list[4].event = &ev_async_disconnect;
/*for(size_t i = 0; i < size; ++i)
{