summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorRonald S. Bultje <rbultje@ronald.bitfreak.net>2003-09-13 15:47:59 +0000
committerRonald S. Bultje <rbultje@ronald.bitfreak.net>2003-09-13 15:47:59 +0000
commit01b291a923a955fe6d801c9d0f8ec8826e306606 (patch)
treea8ae4b18d3bc423ba4fd5462c8022396e39bb3ca /sys
parent3bfac4fc269b10b90c3e44e6dff438e634120f07 (diff)
Make interface hack work with multiple interfaces per element
Original commit message from CVS: Make interface hack work with multiple interfaces per element
Diffstat (limited to 'sys')
-rw-r--r--sys/oss/gstossmixer.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/oss/gstossmixer.c b/sys/oss/gstossmixer.c
index f23a19cf..30af1cc3 100644
--- a/sys/oss/gstossmixer.c
+++ b/sys/oss/gstossmixer.c
@@ -37,7 +37,8 @@
#define MASK_BIT_IS_SET(mask, bit) \
(mask & (1 << bit))
-static gboolean gst_ossmixer_supported (GstInterface *iface);
+static gboolean gst_ossmixer_supported (GstInterface *iface,
+ GType iface_type);
static const GList * gst_ossmixer_list_channels (GstMixer *ossmixer);
@@ -111,8 +112,11 @@ gst_ossmixer_interface_init (GstMixerClass *klass)
}
static gboolean
-gst_ossmixer_supported (GstInterface *iface)
+gst_ossmixer_supported (GstInterface *iface,
+ GType iface_type)
{
+ g_assert (iface_type == GST_TYPE_MIXER);
+
return (GST_OSSELEMENT (iface)->mixer_fd != -1);
}