interfaces: API: Add gst_mixer_get_mixer_type()

This is a convenience function that returns the mixer_type
of the interface struct.
This commit is contained in:
Sebastian Dröge 2009-05-10 17:25:58 +02:00
parent 29b063b39b
commit 59aa1251d9
2 changed files with 19 additions and 0 deletions

View file

@ -323,6 +323,24 @@ gst_mixer_get_option (GstMixer * mixer, GstMixerOptions * opts)
return NULL;
}
/**
* gst_mixer_get_mixer_type:
* @mixer: The #GstMixer implementation
*
* Get the #GstMixerType of this mixer implementation.
*
* Returns: A the #GstMixerType.
*
* Since: 0.10.24
*/
GstMixerType
gst_mixer_get_mixer_type (GstMixer * mixer)
{
GstMixerClass *klass = GST_MIXER_GET_CLASS (mixer);
return klass->mixer_type;
}
/**
* gst_mixer_get_mixer_flags:
* @mixer: The #GstMixer implementation

View file

@ -204,6 +204,7 @@ void gst_mixer_mixer_changed (GstMixer *mixer);
void gst_mixer_options_list_changed (GstMixer *mixer,
GstMixerOptions *opts);
GstMixerType gst_mixer_get_mixer_type (GstMixer *mixer);
GstMixerFlags gst_mixer_get_mixer_flags (GstMixer *mixer);