[gst-cvs] gst-plugins-good: pulsesink: Implement GstStreamVolume interface
Sebastian Dröge
slomo at kemper.freedesktop.org
Fri Sep 11 07:38:09 PDT 2009
Module: gst-plugins-good
Branch: master
Commit: 0c50816aaaa27f30a368ca21260b1766e2e1bf4a
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=0c50816aaaa27f30a368ca21260b1766e2e1bf4a
Author: Sebastian Dröge <sebastian.droege at collabora.co.uk>
Date: Fri Sep 11 15:14:15 2009 +0200
pulsesink: Implement GstStreamVolume interface
---
ext/pulse/pulsesink.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/ext/pulse/pulsesink.c b/ext/pulse/pulsesink.c
index b6a00be..0501dd1 100644
--- a/ext/pulse/pulsesink.c
+++ b/ext/pulse/pulsesink.c
@@ -46,6 +46,7 @@
#include <gst/base/gstbasesink.h>
#include <gst/gsttaglist.h>
+#include <gst/interfaces/streamvolume.h>
#include "pulsesink.h"
#include "pulseutil.h"
@@ -1356,6 +1357,13 @@ gst_pulsesink_init_interfaces (GType type)
NULL,
NULL,
};
+#if HAVE_PULSE_0_9_12
+ static const GInterfaceInfo svol_iface_info = {
+ NULL, NULL, NULL
+ };
+
+ g_type_add_interface_static (type, GST_TYPE_STREAM_VOLUME, &svol_iface_info);
+#endif
g_type_add_interface_static (type, GST_TYPE_IMPLEMENTS_INTERFACE,
&implements_iface_info);
More information about the Gstreamer-commits
mailing list