mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
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:
parent
ed6d46e156
commit
6d27a26d57
1 changed files with 2 additions and 7 deletions
|
@ -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 */
|
||||
|
||||
|
|
Loading…
Reference in a new issue