return gst_alsa_mixer_get_mixer_flags (this->mixer); \
} \
\
+static GstMixerType \
+interface_as_function ## _get_mixer_type (GstMixer * mixer) \
+{ \
+ return GST_MIXER_HARDWARE; \
+} \
+ \
static void \
interface_as_function ## _interface_init (GstMixerInterface * iface) \
{ \
- GST_MIXER_TYPE (iface) = GST_MIXER_HARDWARE; \
- \
/* set up the interface hooks */ \
iface->list_tracks = interface_as_function ## _list_tracks; \
iface->set_volume = interface_as_function ## _set_volume; \
iface->set_option = interface_as_function ## _set_option; \
iface->get_option = interface_as_function ## _get_option; \
iface->get_mixer_flags = interface_as_function ## _get_mixer_flags; \
+ iface->get_mixer_type = interface_as_function ## _get_mixer_type; \
}
GST_OBJECT_UNLOCK (self);
}
+static GstMixerType
+gst_volume_get_mixer_type (GstMixer * mixer)
+{
+ return GST_MIXER_SOFTWARE;
+}
+
static void
gst_volume_mixer_init (GstMixerInterface * iface)
{
- GST_MIXER_TYPE (iface) = GST_MIXER_SOFTWARE;
-
/* default virtual functions */
iface->list_tracks = gst_volume_list_tracks;
iface->set_volume = gst_volume_set_volume;
iface->get_volume = gst_volume_get_volume;
iface->set_mute = gst_volume_set_mute;
+ iface->get_mixer_type = gst_volume_get_mixer_type;
}
/* Element class */
return value;
}
+static GstColorBalanceType
+gst_xvimagesink_colorbalance_get_balance_type (GstColorBalance * balance)
+{
+ return GST_COLOR_BALANCE_HARDWARE;
+}
+
static void
gst_xvimagesink_colorbalance_init (GstColorBalanceInterface * iface)
{
- GST_COLOR_BALANCE_TYPE (iface) = GST_COLOR_BALANCE_HARDWARE;
iface->list_channels = gst_xvimagesink_colorbalance_list_channels;
iface->set_value = gst_xvimagesink_colorbalance_set_value;
iface->get_value = gst_xvimagesink_colorbalance_get_value;
+ iface->get_balance_type = gst_xvimagesink_colorbalance_get_balance_type;
}
#if 0