diff options
author | Michal Ratajsky <[email protected]> | 2016-01-04 21:50:08 +0100 |
---|---|---|
committer | Michal Ratajsky <[email protected]> | 2016-01-05 11:18:38 +0100 |
commit | c03e76c83ed49335390cdb9e3a8e63df4d73e0c5 (patch) | |
tree | de057f689b582f23f63d348530c0d27a0c9518cb /backends/pulse/pulse-source.c | |
parent | 299e1a26e5eb5d6625feba2a9db017f43d9d853c (diff) | |
download | libmatemixer-c03e76c83ed49335390cdb9e3a8e63df4d73e0c5.tar.bz2 libmatemixer-c03e76c83ed49335390cdb9e3a8e63df4d73e0c5.tar.xz |
pulse: Use own PulseAudio connection in stream controls
Diffstat (limited to 'backends/pulse/pulse-source.c')
-rw-r--r-- | backends/pulse/pulse-source.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/backends/pulse/pulse-source.c b/backends/pulse/pulse-source.c index 570423d..b70cbe4 100644 --- a/backends/pulse/pulse-source.c +++ b/backends/pulse/pulse-source.c @@ -138,7 +138,7 @@ pulse_source_new (PulseConnection *connection, "index", info->index, NULL); - source->priv->control = pulse_source_control_new (source, info); + source->priv->control = pulse_source_control_new (connection, info, source); if (info->n_ports > 0) { pa_source_port_info **ports = info->ports; @@ -194,8 +194,12 @@ pulse_source_add_output (PulseSource *source, const pa_source_output_info *info) output = g_hash_table_lookup (source->priv->outputs, GUINT_TO_POINTER (info->index)); if (output == NULL) { const gchar *name; + PulseConnection *connection; - output = pulse_source_output_new (source, info); + connection = pulse_stream_get_connection (PULSE_STREAM (source)); + output = pulse_source_output_new (connection, + info, + source); g_hash_table_insert (source->priv->outputs, GUINT_TO_POINTER (info->index), output); |