summaryrefslogtreecommitdiff
path: root/backends/pulse/pulse-sink.c
diff options
context:
space:
mode:
authorMichal Ratajsky <[email protected]>2016-01-04 21:50:08 +0100
committerMichal Ratajsky <[email protected]>2016-01-05 11:18:38 +0100
commitc03e76c83ed49335390cdb9e3a8e63df4d73e0c5 (patch)
treede057f689b582f23f63d348530c0d27a0c9518cb /backends/pulse/pulse-sink.c
parent299e1a26e5eb5d6625feba2a9db017f43d9d853c (diff)
downloadlibmatemixer-c03e76c83ed49335390cdb9e3a8e63df4d73e0c5.tar.bz2
libmatemixer-c03e76c83ed49335390cdb9e3a8e63df4d73e0c5.tar.xz
pulse: Use own PulseAudio connection in stream controls
Diffstat (limited to 'backends/pulse/pulse-sink.c')
-rw-r--r--backends/pulse/pulse-sink.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/backends/pulse/pulse-sink.c b/backends/pulse/pulse-sink.c
index 616331b..3f9573d 100644
--- a/backends/pulse/pulse-sink.c
+++ b/backends/pulse/pulse-sink.c
@@ -141,7 +141,7 @@ pulse_sink_new (PulseConnection *connection,
"index", info->index,
NULL);
- sink->priv->control = pulse_sink_control_new (sink, info);
+ sink->priv->control = pulse_sink_control_new (connection, info, sink);
if (info->n_ports > 0) {
pa_sink_port_info **ports = info->ports;
@@ -197,8 +197,13 @@ pulse_sink_add_input (PulseSink *sink, const pa_sink_input_info *info)
input = g_hash_table_lookup (sink->priv->inputs, GUINT_TO_POINTER (info->index));
if (input == NULL) {
const gchar *name;
+ PulseConnection *connection;
+
+ connection = pulse_stream_get_connection (PULSE_STREAM (sink));
+ input = pulse_sink_input_new (connection,
+ info,
+ sink);
- input = pulse_sink_input_new (sink, info);
g_hash_table_insert (sink->priv->inputs,
GUINT_TO_POINTER (info->index),
input);