summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2004-05-08 00:20:18 +0000
committerDavid Schleef <ds@schleef.org>2004-05-08 00:20:18 +0000
commit5093ae66b9fb4b124a28976a9a4cb58c12ab8f75 (patch)
tree0c31f034e258034f7f12cabfceee67fa521706d0
parent304141bd77278a90b1c85bba42bf0a9b082b8016 (diff)
downloadgst-plugins-bad-5093ae66b9fb4b124a28976a9a4cb58c12ab8f75.tar.gz
gst-plugins-bad-5093ae66b9fb4b124a28976a9a4cb58c12ab8f75.tar.bz2
gst-plugins-bad-5093ae66b9fb4b124a28976a9a4cb58c12ab8f75.zip
ext/faad/gstfaad.c: HACK to correct signed char assumption in faad.h.
Original commit message from CVS: * ext/faad/gstfaad.c: (gst_faad_sinkconnect): HACK to correct signed char assumption in faad.h.
-rw-r--r--ChangeLog5
-rw-r--r--ext/faad/gstfaad.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 17f195f8..f68af3f3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-05-07 David Schleef <ds@schleef.org>
+
+ * ext/faad/gstfaad.c: (gst_faad_sinkconnect): HACK to correct
+ signed char assumption in faad.h.
+
2004-05-07 Ronald Bultje <rbultje@ronald.bitfreak.net>
* sys/v4l2/gstv4l2src.c: (gst_v4l2src_v4l2fourcc_to_caps):
diff --git a/ext/faad/gstfaad.c b/ext/faad/gstfaad.c
index 6c526c32..5aea2317 100644
--- a/ext/faad/gstfaad.c
+++ b/ext/faad/gstfaad.c
@@ -157,7 +157,8 @@ gst_faad_sinkconnect (GstPad * pad, const GstCaps * caps)
guchar channels;
buf = g_value_get_boxed (value);
- if (faacDecInit2 (faad->handle, GST_BUFFER_DATA (buf),
+ /* someone forgot that char can be unsigned when writing the API */
+ if ((gint8) faacDecInit2 (faad->handle, GST_BUFFER_DATA (buf),
GST_BUFFER_SIZE (buf), &samplerate, &channels) < 0)
return GST_PAD_LINK_REFUSED;