From aa7ef2d6681b05deb458e4dc94a4a9cc8940790e Mon Sep 17 00:00:00 2001 From: Jan Klemkow Date: Tue, 13 Jul 2010 18:01:48 +0200 Subject: change sink-name to sink-device sink-device is the name of the device --- src/pa-sink-ctl.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/pa-sink-ctl.c') diff --git a/src/pa-sink-ctl.c b/src/pa-sink-ctl.c index 1417064..13ab681 100644 --- a/src/pa-sink-ctl.c +++ b/src/pa-sink-ctl.c @@ -114,6 +114,8 @@ void get_sink_info_callback(pa_context *c, const pa_sink_info *i, int is_last, v sink_list[sink_counter]->vol = pa_cvolume_avg(&i->volume); sink_list[sink_counter]->channels = i->volume.channels; sink_list[sink_counter]->name = strdup(i->name); + sink_list[sink_counter]->device = strdup(pa_proplist_gets(i->proplist, "device.product.name")); + ++sink_counter; } -- cgit