diff options
author | David Schleef <ds@schleef.org> | 2003-08-13 06:43:01 +0000 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2003-08-13 06:43:01 +0000 |
commit | 2e7e62bd9aaaea75186f5dee7e6c0a9815178b26 (patch) | |
tree | df160634d6ffe8951464dc0545a2aa3b0730ff00 | |
parent | ba4eba53fe211296ed2a333cd2e896c322c21bbb (diff) |
clean up code, fix typos in lst checkin
Original commit message from CVS:
clean up code, fix typos in lst checkin
-rw-r--r-- | gst-libs/gst/riff/riff.h | 5 | ||||
-rw-r--r-- | gst-libs/gst/riff/riffparse.c | 15 |
2 files changed, 9 insertions, 11 deletions
diff --git a/gst-libs/gst/riff/riff.h b/gst-libs/gst/riff/riff.h index 95af7508d..d8f57735b 100644 --- a/gst-libs/gst/riff/riff.h +++ b/gst-libs/gst/riff/riff.h @@ -40,9 +40,8 @@ typedef enum { GST_RIFF_STATE_MOVI = 4 } GstRiffParserState; -#define MAKE_FOUR_CC(a,b,c,d) ( ((guint32)a) | (((guint32)b)<< 8) | \ - ((guint32)c)<<16 | (((guint32)d)<<24) ) - +#define MAKE_FOUR_CC(a,b,c,d) GST_MAKE_FOURCC(a,b,c,d) + /* RIFF types */ #define GST_RIFF_RIFF_WAVE MAKE_FOUR_CC('W','A','V','E') #define GST_RIFF_RIFF_AVI MAKE_FOUR_CC('A','V','I',' ') diff --git a/gst-libs/gst/riff/riffparse.c b/gst-libs/gst/riff/riffparse.c index 3b66db872..72a7820b8 100644 --- a/gst-libs/gst/riff/riffparse.c +++ b/gst-libs/gst/riff/riffparse.c @@ -170,9 +170,9 @@ gst_riff_parser_next_buffer (GstRiff *riff, GstBuffer *buf, gulong off) } else { - GST_DEBUG ("gst_riff_parser: chunk id offset %08x is 0x%08x '%s' and is 0x%08x long", - riff->nextlikely, GUINT32_FROM_LE (words[0]), - gst_riff_id_to_fourcc(GUINT32_FROM_LE (words[0])), GUINT32_FROM_LE (words[1])); + GST_DEBUG ("gst_riff_parser: chunk id offset %08x is 0x%08x '" GST_FOURCC_FORMAT "' and is 0x%08x long", + riff->nextlikely, chunk->id, GST_FOURCC_ARGS(chunk->id), + chunk->size); riff->nextlikely += 8 + chunk->size; /* doesn't include hdr */ /* if this buffer is incomplete */ @@ -194,7 +194,7 @@ gst_riff_parser_next_buffer (GstRiff *riff, GstBuffer *buf, gulong off) } if (riff->nextlikely & 0x01) riff->nextlikely++; - /*riff->chunks = g_list_prepend(riff->chunks,chunk); */ + /*riff->chunks = g_list_prepend(riff->chunks,chunk);*/ } } if ((riff->nextlikely+12) > last && !riff->incomplete_chunk) { @@ -221,16 +221,15 @@ gst_riff_parser_resync (GstRiff *riff, gulong offset) } -GstRiffChunk *gst_riff_get_chunk(GstRiff *riff,gchar *fourcc) +GstRiffChunk *gst_riff_parser_get_chunk(GstRiff *riff, guint32 fourcc) { GList *chunk; g_return_val_if_fail(riff != NULL, NULL); - g_return_val_if_fail(fourcc != NULL, NULL); chunk = riff->chunks; while (chunk) { - if (((GstRiffChunk *)(chunk->data))->id == gst_riff_fourcc_to_id(fourcc)) + if (((GstRiffChunk *)(chunk->data))->id == fourcc) return (GstRiffChunk *)(chunk->data); chunk = g_list_next(chunk); } @@ -238,7 +237,7 @@ GstRiffChunk *gst_riff_get_chunk(GstRiff *riff,gchar *fourcc) return NULL; } -guint32 gst_riff_get_nextlikely(GstRiff *riff) +guint32 gst_riff_parser_get_nextlikely(GstRiff *riff) { g_return_val_if_fail(riff != NULL, 0); |