diff options
author | Jan Klemkow <web2p10@wemelug.de> | 2010-07-13 18:01:48 +0200 |
---|---|---|
committer | Jan Klemkow <web2p10@wemelug.de> | 2010-07-13 18:01:48 +0200 |
commit | aa7ef2d6681b05deb458e4dc94a4a9cc8940790e (patch) | |
tree | e4462d8b9f64065fea66f2ca70542e1e8404d76a /src/pa-sink-ctl.c | |
parent | 5423f68eb39adb4cc0165032efb7d53d38ccd10c (diff) | |
download | pa-sink-ctl-aa7ef2d6681b05deb458e4dc94a4a9cc8940790e.tar.gz pa-sink-ctl-aa7ef2d6681b05deb458e4dc94a4a9cc8940790e.tar.bz2 pa-sink-ctl-aa7ef2d6681b05deb458e4dc94a4a9cc8940790e.zip |
change sink-name to sink-device
sink-device is the name of the device
Diffstat (limited to 'src/pa-sink-ctl.c')
-rw-r--r-- | src/pa-sink-ctl.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |