mixer/colorbalance: Update for API changes

This commit is contained in:
Sebastian Dröge 2012-03-02 10:00:59 +01:00
parent f7939bb43f
commit 1cbcb9281c
3 changed files with 21 additions and 5 deletions

View file

@ -189,11 +189,15 @@ interface_as_function ## _get_mixer_flags (GstMixer * mixer)
return gst_alsa_mixer_get_mixer_flags (this->mixer); \ 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 \ static void \
interface_as_function ## _interface_init (GstMixerInterface * iface) \ interface_as_function ## _interface_init (GstMixerInterface * iface) \
{ \ { \
GST_MIXER_TYPE (iface) = GST_MIXER_HARDWARE; \
\
/* set up the interface hooks */ \ /* set up the interface hooks */ \
iface->list_tracks = interface_as_function ## _list_tracks; \ iface->list_tracks = interface_as_function ## _list_tracks; \
iface->set_volume = interface_as_function ## _set_volume; \ iface->set_volume = interface_as_function ## _set_volume; \
@ -203,6 +207,7 @@ interface_as_function ## _interface_init (GstMixerInterface * iface)
iface->set_option = interface_as_function ## _set_option; \ iface->set_option = interface_as_function ## _set_option; \
iface->get_option = interface_as_function ## _get_option; \ iface->get_option = interface_as_function ## _get_option; \
iface->get_mixer_flags = interface_as_function ## _get_mixer_flags; \ iface->get_mixer_flags = interface_as_function ## _get_mixer_flags; \
iface->get_mixer_type = interface_as_function ## _get_mixer_type; \
} }

View file

@ -332,16 +332,21 @@ gst_volume_set_mute (GstMixer * mixer, GstMixerTrack * track, gboolean mute)
GST_OBJECT_UNLOCK (self); GST_OBJECT_UNLOCK (self);
} }
static GstMixerType
gst_volume_get_mixer_type (GstMixer * mixer)
{
return GST_MIXER_SOFTWARE;
}
static void static void
gst_volume_mixer_init (GstMixerInterface * iface) gst_volume_mixer_init (GstMixerInterface * iface)
{ {
GST_MIXER_TYPE (iface) = GST_MIXER_SOFTWARE;
/* default virtual functions */ /* default virtual functions */
iface->list_tracks = gst_volume_list_tracks; iface->list_tracks = gst_volume_list_tracks;
iface->set_volume = gst_volume_set_volume; iface->set_volume = gst_volume_set_volume;
iface->get_volume = gst_volume_get_volume; iface->get_volume = gst_volume_get_volume;
iface->set_mute = gst_volume_set_mute; iface->set_mute = gst_volume_set_mute;
iface->get_mixer_type = gst_volume_get_mixer_type;
} }
/* Element class */ /* Element class */

View file

@ -2309,13 +2309,19 @@ gst_xvimagesink_colorbalance_get_value (GstColorBalance * balance,
return value; return value;
} }
static GstColorBalanceType
gst_xvimagesink_colorbalance_get_balance_type (GstColorBalance * balance)
{
return GST_COLOR_BALANCE_HARDWARE;
}
static void static void
gst_xvimagesink_colorbalance_init (GstColorBalanceInterface * iface) gst_xvimagesink_colorbalance_init (GstColorBalanceInterface * iface)
{ {
GST_COLOR_BALANCE_TYPE (iface) = GST_COLOR_BALANCE_HARDWARE;
iface->list_channels = gst_xvimagesink_colorbalance_list_channels; iface->list_channels = gst_xvimagesink_colorbalance_list_channels;
iface->set_value = gst_xvimagesink_colorbalance_set_value; iface->set_value = gst_xvimagesink_colorbalance_set_value;
iface->get_value = gst_xvimagesink_colorbalance_get_value; iface->get_value = gst_xvimagesink_colorbalance_get_value;
iface->get_balance_type = gst_xvimagesink_colorbalance_get_balance_type;
} }
#if 0 #if 0