summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
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);
}