From bb23b9a3a243290b6feabbe8c745fef97a06ea33 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Mon, 7 Apr 2003 18:43:25 +0000 Subject: Fix a bunch of endianness conversions that were done as long instead of int32. Should go into 0.6.1. Original commit message from CVS: Fix a bunch of endianness conversions that were done as long instead of int32. Should go into 0.6.1. --- ext/ivorbis/vorbis.c | 2 +- ext/tarkin/gsttarkin.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'ext') diff --git a/ext/ivorbis/vorbis.c b/ext/ivorbis/vorbis.c index f6014bd8..b543f88f 100644 --- a/ext/ivorbis/vorbis.c +++ b/ext/ivorbis/vorbis.c @@ -85,7 +85,7 @@ static GstTypeDefinition vorbisdefinition = { static GstCaps* vorbis_type_find (GstBuffer *buf, gpointer private) { - gulong head = GULONG_FROM_BE (*((gulong *)GST_BUFFER_DATA (buf))); + guint32 head = GUINT32_FROM_BE (*((guint32 *)GST_BUFFER_DATA (buf))); if (head != 0x4F676753) return NULL; diff --git a/ext/tarkin/gsttarkin.c b/ext/tarkin/gsttarkin.c index 4f3a8141..fdee893a 100644 --- a/ext/tarkin/gsttarkin.c +++ b/ext/tarkin/gsttarkin.c @@ -69,7 +69,7 @@ static GstTypeDefinition tarkindefinition = static GstCaps* tarkin_type_find (GstBuffer *buf, gpointer private) { - gulong head = GULONG_FROM_BE (*((gulong *)GST_BUFFER_DATA (buf))); + guint32 head = GUINT32_FROM_BE (*((guint32 *)GST_BUFFER_DATA (buf))); /* FIXME */ return NULL; -- cgit v1.2.1