From 2c6e80e1741707fec58bb3e5c114079a9d7ccaa5 Mon Sep 17 00:00:00 2001 From: ben Date: Thu, 21 Oct 2010 18:00:24 +0200 Subject: get_sink_input_info: use pa_sink_info name attr as fallback --- src/pa-sink-ctl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pa-sink-ctl.c b/src/pa-sink-ctl.c index 04d4481..02a58ab 100644 --- a/src/pa-sink-ctl.c +++ b/src/pa-sink-ctl.c @@ -168,7 +168,9 @@ void get_sink_input_info_callback(pa_context *c, const pa_sink_input_info *i, gi g_array_append_val(g_array_index(sink_list_tmp, sink_info, i->sink).input_list, ((sink_input_info) { .index = i->index, .sink = i->sink, - .name = g_strdup(pa_proplist_gets(i->proplist, "application.name")), + .name = pa_proplist_contains(i->proplist, "application.name") ? + g_strdup(pa_proplist_gets(i->proplist, "application.name")): + g_strdup(i->name), .mute = i->mute, .channels = i->volume.channels, .vol = pa_cvolume_avg(&i->volume), -- cgit