summaryrefslogtreecommitdiff
path: root/backends/pulse/pulse-stream.c
diff options
context:
space:
mode:
authorMichal Ratajsky <[email protected]>2014-06-23 00:54:20 +0200
committerMichal Ratajsky <[email protected]>2014-06-23 00:54:20 +0200
commitc00c008f789781748706e3f77410cde844602e4a (patch)
treedf3a895eed814cc9988e7ce2b24ec0427b1c8457 /backends/pulse/pulse-stream.c
parent18ff80676c9ecce7f875a0bcb8190bd5a1dc1b00 (diff)
downloadlibmatemixer-c00c008f789781748706e3f77410cde844602e4a.tar.bz2
libmatemixer-c00c008f789781748706e3f77410cde844602e4a.tar.xz
Support source output parent, minor fixes
Diffstat (limited to 'backends/pulse/pulse-stream.c')
-rw-r--r--backends/pulse/pulse-stream.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/backends/pulse/pulse-stream.c b/backends/pulse/pulse-stream.c
index 49001b9..4daff23 100644
--- a/backends/pulse/pulse-stream.c
+++ b/backends/pulse/pulse-stream.c
@@ -424,6 +424,23 @@ pulse_stream_update_description (PulseStream *stream, const gchar *description)
return TRUE;
}
+// XXX actually use this
+gboolean
+pulse_stream_update_device (PulseStream *stream, MateMixerDevice *device)
+{
+ g_return_val_if_fail (PULSE_IS_STREAM (stream), FALSE);
+
+ if (stream->priv->device != device) {
+ g_clear_object (&stream->priv->device);
+
+ if (G_LIKELY (device != NULL))
+ stream->priv->device = g_object_ref (device);
+
+ g_object_notify (G_OBJECT (stream), "device");
+ }
+ return TRUE;
+}
+
gboolean
pulse_stream_update_flags (PulseStream *stream, MateMixerStreamFlags flags)
{