interfaces: API: Add gst_mixer_get_mixer_type()
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Sun, 10 May 2009 15:25:58 +0000 (17:25 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 12 May 2009 07:03:24 +0000 (09:03 +0200)
This is a convenience function that returns the mixer_type
of the interface struct.

gst-libs/gst/interfaces/mixer.c
gst-libs/gst/interfaces/mixer.h

index 9d63547..3546783 100644 (file)
@@ -324,6 +324,24 @@ gst_mixer_get_option (GstMixer * mixer, GstMixerOptions * opts)
 }
 
 /**
+ * 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
  *
index 3dc3212..e0fc219 100644 (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);