X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=ext%2Fvorbis%2Fgstvorbisdec.h;h=721b666a547982c4e99fed81dec619ff84094227;hb=73b894107a1d062b2d06dbdf77bca2fafb1feef7;hp=d122a0e02d64f89fa6eb8673b1f5477753ffbe40;hpb=ba41bb5ca78335dca05a320679ade19886a552fb;p=platform%2Fupstream%2Fgstreamer.git diff --git a/ext/vorbis/gstvorbisdec.h b/ext/vorbis/gstvorbisdec.h index d122a0e..721b666 100644 --- a/ext/vorbis/gstvorbisdec.h +++ b/ext/vorbis/gstvorbisdec.h @@ -27,6 +27,7 @@ #endif #include +#include #include "gstvorbisdeclib.h" G_BEGIN_DECLS @@ -51,15 +52,11 @@ typedef struct _GstVorbisDecClass GstVorbisDecClass; * Opaque data structure. */ struct _GstVorbisDec { - GstElement element; - - GstPad *sinkpad; - GstPad *srcpad; + GstAudioDecoder element; vorbis_dsp_state vd; vorbis_info vi; vorbis_comment vc; - #ifndef USE_TREMOLO vorbis_block vb; #endif @@ -67,26 +64,13 @@ struct _GstVorbisDec { gboolean initialized; GstAudioInfo info; - /* list of buffers that need timestamps */ - GList *queued; - /* gather/decode queues for reverse playback */ - GList *gather; - GList *decode; - - GstSegment segment; - gboolean discont; - guint32 seqnum; - - GstClockTime last_timestamp; - - GList *pendingevents; GstTagList *taglist; - + CopySampleFunc copy_samples; }; struct _GstVorbisDecClass { - GstElementClass parent_class; + GstAudioDecoderClass parent_class; }; GType gst_vorbis_dec_get_type(void);