Make interface hack work with multiple interfaces per element

Original commit message from CVS:
Make interface hack work with multiple interfaces per element
This commit is contained in:
Ronald S. Bultje 2003-09-13 15:47:59 +00:00
parent 3bfac4fc26
commit 01b291a923

View file

@ -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);
}