audiodecoder: add baseclass _CAST macro
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Tue, 6 Mar 2012 14:55:26 +0000 (15:55 +0100)
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Tue, 6 Mar 2012 15:17:33 +0000 (16:17 +0100)
gst-libs/gst/audio/gstaudiodecoder.h

index ba4fff3..bde1cfc 100644 (file)
@@ -41,6 +41,8 @@ G_BEGIN_DECLS
   (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_AUDIO_DECODER))
 #define GST_IS_AUDIO_DECODER_CLASS(obj) \
   (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_AUDIO_DECODER))
+#define GST_AUDIO_DECODER_CAST(obj) \
+  ((GstAudioDecoder *)(obj))
 
 /**
  * GST_AUDIO_DECODER_SINK_NAME: