vorbis: give libvorbis-based decoder and vorbisidec decoder different type names

Should fix "cannot register existing type `GstVorbisDec'" criticals
when both libvorbis and vorbisidec are available.

https://bugzilla.gnome.org/show_bug.cgi?id=673333
This commit is contained in:
Tim-Philipp Müller 2012-05-16 15:10:41 +01:00
parent ed6d46e156
commit 6d27a26d57

View file

@ -43,8 +43,6 @@
#define GST_VORBIS_DEC_DEFAULT_SAMPLE_WIDTH (32)
#define GST_VORBIS_DEC_GLIB_TYPE_NAME GstVorbisDec
#else /* TREMOR */
#define GST_VORBIS_DEC_DESCRIPTION "decode raw vorbis streams to integer audio"
@ -61,11 +59,8 @@
#define GST_VORBIS_DEC_DEFAULT_SAMPLE_WIDTH (16)
/* we need a different type name here */
#define GST_VORBIS_DEC_GLIB_TYPE_NAME GstIVorbisDec
/* and still have it compile */
typedef struct _GstVorbisDec GstIVorbisDec;
typedef struct _GstVorbisDecClass GstIVorbisDecClass;
#define GstVorbisDec GstIVorbisDec
#define GstVorbisDecClass GstIVorbisDecClass
#endif /* TREMOR */