summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas@apestaart.org>2003-08-26 20:19:44 +0000
committerThomas Vander Stichele <thomas@apestaart.org>2003-08-26 20:19:44 +0000
commitc6a4e91afe03b2ff402e27f3edb5bf9b44de75b0 (patch)
tree7ebd04d1ab2b7b12a8f086c61f5b5cad6700f291
parent927a54f816229cab508618add6851c063bacfb9a (diff)
downloadgstreamer-plugins-bad-c6a4e91afe03b2ff402e27f3edb5bf9b44de75b0.tar.gz
closes bug #119105
Original commit message from CVS: closes bug #119105
-rw-r--r--configure.ac2
-rw-r--r--ext/jack/gstjack.c4
-rw-r--r--gst-libs/ext/ffmpeg/Makefile.am2
-rw-r--r--gst/cdxaparse/gstcdxaparse.c4
-rw-r--r--gst/qtdemux/qtdemux.c11
5 files changed, 14 insertions, 9 deletions
diff --git a/configure.ac b/configure.ac
index ad6bb93c9..37b659cca 100644
--- a/configure.ac
+++ b/configure.ac
@@ -12,7 +12,7 @@ AM_MAINTAINER_MODE
dnl when going to/from release please set the nano (fourth number) right !
dnl releases only do Wall, cvs and prerelease does Werror too
-AS_VERSION(gst-plugins, GST_PLUGINS_VERSION, 0, 6, 2, 1, GST_ERROR="-Wall", GST_ERROR="-Wall -Werror")
+AS_VERSION(gst-plugins, GST_PLUGINS_VERSION, 0, 6, 2, 2, GST_ERROR="-Wall", GST_ERROR="-Wall -Werror")
AM_INIT_AUTOMAKE($PACKAGE,$VERSION)
dnl our libraries and install dirs use major.minor as a version
diff --git a/ext/jack/gstjack.c b/ext/jack/gstjack.c
index 4d6c21704..66d3f1ae9 100644
--- a/ext/jack/gstjack.c
+++ b/ext/jack/gstjack.c
@@ -422,7 +422,7 @@ gst_jack_loop (GstElement *element)
GstJack *this;
GList *pads;
gint len, peeked_len;
- gchar *peeked;
+ guint8 *peeked;
gint avail;
GstEvent *event;
GstJackPad *pad;
@@ -443,7 +443,7 @@ gst_jack_loop (GstElement *element)
pad->bs = gst_bytestream_new (pad->pad);
read:
- peeked_len = gst_bytestream_peek_bytes (pad->bs, (guint8**)&peeked, len);
+ peeked_len = gst_bytestream_peek_bytes (pad->bs, &peeked, len);
if (peeked_len < len) {
gst_bytestream_get_status(pad->bs, &avail, &event);
if (event) {
diff --git a/gst-libs/ext/ffmpeg/Makefile.am b/gst-libs/ext/ffmpeg/Makefile.am
index 58bbda699..bb346f256 100644
--- a/gst-libs/ext/ffmpeg/Makefile.am
+++ b/gst-libs/ext/ffmpeg/Makefile.am
@@ -16,7 +16,7 @@ PATCHES = patch/function.patch
patches:
@echo -n Patching ffmpeg if necessary ...
- @patch -p0 -N -r rejects < patch/function.patch > /dev/null || true
+ @patch -p0 -N -r rejects < $(srcdir)/patch/function.patch > /dev/null || true
@rm -f rejects || true
@echo done.
diff --git a/gst/cdxaparse/gstcdxaparse.c b/gst/cdxaparse/gstcdxaparse.c
index 842d8e29c..2154aa545 100644
--- a/gst/cdxaparse/gstcdxaparse.c
+++ b/gst/cdxaparse/gstcdxaparse.c
@@ -242,6 +242,7 @@ gst_cdxa_parse_loop (GstElement *element)
{
GstCDXAParse *cdxa_parse;
CDXAParseHeader *header;
+ guint8 *headerdata;
g_return_if_fail (element != NULL);
g_return_if_fail (GST_IS_CDXA_PARSE (element));
@@ -253,7 +254,8 @@ gst_cdxa_parse_loop (GstElement *element)
guint8 *buf;
guint32 got_bytes;
- got_bytes = gst_bytestream_peek_bytes (cdxa_parse->bs, (guint8**)&header, 20);
+ got_bytes = gst_bytestream_peek_bytes (cdxa_parse->bs, &headerdata, 20);
+ header = (CDXAParseHeader *) headerdata;
if (got_bytes < 20)
return;
diff --git a/gst/qtdemux/qtdemux.c b/gst/qtdemux/qtdemux.c
index 06aae9795..fb3a538df 100644
--- a/gst/qtdemux/qtdemux.c
+++ b/gst/qtdemux/qtdemux.c
@@ -363,11 +363,13 @@ gst_qtp_read_bytes_atom_head(GstQTDemux * qtdemux,GstQtpAtom * atom)
GstByteStream * bs = qtdemux->bs;
GstQtpAtomMinHeader * amh = NULL;
guint64 * esize=NULL;
+ guint8 * ptr;
/* FIXME this can't be right, rewrite with _read */
do { /* do ... while (event()) is necessary for bytestream events */
if (!amh) {
- if (gst_bytestream_peek_bytes (bs, (guint8**)&amh, 8) == 8) {
+ if (gst_bytestream_peek_bytes (bs, &ptr, 8) == 8) {
+ amh = (GstQtpAtomMinHeader *)ptr;
atom->size = GUINT32_FROM_BE(amh->size);
atom->type = amh->type; /* don't need to turn this around magicly FIXME this can depend on endiannes */
atom->start = qtdemux->bs_pos;
@@ -377,7 +379,8 @@ gst_qtp_read_bytes_atom_head(GstQTDemux * qtdemux,GstQtpAtom * atom)
}
if (amh) {
if (atom->size == 1) { /* need to peek extended size field */
- if (gst_bytestream_peek_bytes (bs, (guint8**)&esize, 8) == 8) {
+ if (gst_bytestream_peek_bytes (bs, &ptr, 8) == 8) {
+ esize = (guint64 *)ptr;
atom->size = GUINT64_FROM_BE(*esize);
gst_bytestream_flush (bs, 8);
qtdemux->bs_pos += 8;
@@ -394,11 +397,11 @@ gst_qtp_read_bytes_atom_head(GstQTDemux * qtdemux,GstQtpAtom * atom)
static void
gst_qtp_read_bytes(GstQTDemux * qtdemux, void * buffer, size_t size)
{
- void * data;
+ guint8 * data;
GstByteStream * bs = qtdemux->bs;
do {
- if (gst_bytestream_peek_bytes (bs, (guint8**)&data, size) == size) {
+ if (gst_bytestream_peek_bytes (bs, &data, size) == size) {
memcpy(buffer,data,size);
gst_bytestream_flush(bs,size);
qtdemux->bs_pos += size;