From 1fda23c02cec2032306c1edf92f38ce3474c9bed Mon Sep 17 00:00:00 2001 From: Tanu Kaskinen Date: Thu, 24 Feb 2011 16:16:41 +0200 Subject: [PATCH] virtual-sink/source: Use a more descriptive stream name. --- src/modules/module-virtual-sink.c | 2 +- src/modules/module-virtual-source.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/module-virtual-sink.c b/src/modules/module-virtual-sink.c index e55e890..a45f4f5 100644 --- a/src/modules/module-virtual-sink.c +++ b/src/modules/module-virtual-sink.c @@ -578,7 +578,7 @@ int pa__init(pa_module*m) { sink_input_data.module = m; sink_input_data.sink = master; sink_input_data.origin_sink = u->sink; - pa_proplist_sets(sink_input_data.proplist, PA_PROP_MEDIA_NAME, "Virtual Sink Stream"); + pa_proplist_setf(sink_input_data.proplist, PA_PROP_MEDIA_NAME, "Virtual Sink Stream from %s", pa_proplist_gets(u->sink->proplist, PA_PROP_DEVICE_DESCRIPTION)); pa_proplist_sets(sink_input_data.proplist, PA_PROP_MEDIA_ROLE, "filter"); pa_sink_input_new_data_set_sample_spec(&sink_input_data, &ss); pa_sink_input_new_data_set_channel_map(&sink_input_data, &map); diff --git a/src/modules/module-virtual-source.c b/src/modules/module-virtual-source.c index a2b073f..2b27b05 100644 --- a/src/modules/module-virtual-source.c +++ b/src/modules/module-virtual-source.c @@ -633,7 +633,7 @@ int pa__init(pa_module*m) { /* FIXME source_output_data.flags = PA_SOURCE_OUTPUT_DONT_INHIBIT_AUTO_SUSPEND; */ - pa_proplist_sets(source_output_data.proplist, PA_PROP_MEDIA_NAME, "Virtual Source Stream"); + pa_proplist_setf(source_output_data.proplist, PA_PROP_MEDIA_NAME, "Virtual Source Stream of %s", pa_proplist_gets(u->source->proplist, PA_PROP_DEVICE_DESCRIPTION)); pa_proplist_sets(source_output_data.proplist, PA_PROP_MEDIA_ROLE, "filter"); pa_source_output_new_data_set_sample_spec(&source_output_data, &ss); pa_source_output_new_data_set_channel_map(&source_output_data, &map); -- 2.7.4