aboutsummaryrefslogtreecommitdiff
path: root/multimedia/gstreamer-plugins-bad/files/patch-ext_faad_gstfaad.c
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/gstreamer-plugins-bad/files/patch-ext_faad_gstfaad.c')
-rw-r--r--multimedia/gstreamer-plugins-bad/files/patch-ext_faad_gstfaad.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/multimedia/gstreamer-plugins-bad/files/patch-ext_faad_gstfaad.c b/multimedia/gstreamer-plugins-bad/files/patch-ext_faad_gstfaad.c
new file mode 100644
index 000000000000..beed61fe590f
--- /dev/null
+++ b/multimedia/gstreamer-plugins-bad/files/patch-ext_faad_gstfaad.c
@@ -0,0 +1,23 @@
+--- ext/faad/gstfaad.c.orig Tue Sep 12 22:48:28 2006
++++ ext/faad/gstfaad.c Wed Sep 13 06:32:15 2006
+@@ -38,15 +38,19 @@
+ * but not all, hence this Truly Evil Hack. This hack will need updating if
+ * upstream ever releases something with the new API.
+ */
++#include <neaacdec.h>
++#include "gstfaad.h"
++
++#if 0
+ #define faacDecInit faacDecInit_no_definition
+ #define faacDecInit2 faacDecInit2_no_definition
+-#include "gstfaad.h"
+ #undef faacDecInit
+ #undef faacDecInit2
+
+ extern long faacDecInit (faacDecHandle, guint8 *, guint32, guint32 *, guint8 *);
+ extern int8_t faacDecInit2 (faacDecHandle, guint8 *, guint32,
+ guint32 *, guint8 *);
++#endif
+
+ GST_DEBUG_CATEGORY_STATIC (faad_debug);
+ #define GST_CAT_DEFAULT faad_debug