From 332549280da9ee65eded73e7b01e5f6ce5465118 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Fri, 28 Jul 2006 08:21:27 +0000 Subject: [PATCH] gst/avi/gstavidemux.*: Whitespace fixes and more debug Original commit message from CVS: * gst/avi/gstavidemux.c: (gst_avi_demux_stream_index), (gst_avi_demux_massage_index): * gst/avi/gstavidemux.h: Whitespace fixes and more debug --- ChangeLog | 7 +++++++ gst/avi/gstavidemux.c | 9 +++++++-- gst/avi/gstavidemux.h | 2 +- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index eb7760130e..71e14d81f5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-07-28 Stefan Kost,,, + + * gst/avi/gstavidemux.c: (gst_avi_demux_stream_index), + (gst_avi_demux_massage_index): + * gst/avi/gstavidemux.h: + Whitespace fixes and more debug + 2006-07-27 Tim-Philipp Müller * gst/autodetect/gstautoaudiosink.c: diff --git a/gst/avi/gstavidemux.c b/gst/avi/gstavidemux.c index 4f758fb24c..01b0de1b51 100644 --- a/gst/avi/gstavidemux.c +++ b/gst/avi/gstavidemux.c @@ -1473,6 +1473,7 @@ gst_avi_demux_stream_index (GstAviDemux * avi, return; + /* ERRORS */ no_index: { GST_ERROR_OBJECT (avi, @@ -1629,7 +1630,7 @@ done: /** * gst_avi_demux_peek_tag: - * + * * Returns the tag and size of the next chunk */ @@ -1658,7 +1659,7 @@ beach: /** * gst_avi_demux_next_data_buffer: - * + * * Returns the offset and size of the next buffer * Position is the position of the buffer (after tag and size) */ @@ -2029,6 +2030,10 @@ gst_avi_demux_massage_index (GstAviDemux * avi, entry = one->data; memcpy (&avi->index_entries[i], entry, sizeof (gst_avi_index_entry)); avi->index_entries[i].index_nr = i; + GST_DEBUG ("Adding index entry %d for stream %d of size %u " + "at offset %" G_GUINT64_FORMAT " and time %" GST_TIME_FORMAT, + avi->index_entries[i].index_nr, entry->stream_nr, entry->size, + entry->offset, GST_TIME_ARGS (entry->ts)); } GST_LOG_OBJECT (avi, "Freeing original index list"); diff --git a/gst/avi/gstavidemux.h b/gst/avi/gstavidemux.h index 6006189dd4..0eeb2367e1 100644 --- a/gst/avi/gstavidemux.h +++ b/gst/avi/gstavidemux.h @@ -39,7 +39,7 @@ G_BEGIN_DECLS #define GST_IS_AVI_DEMUX_CLASS(klass) \ (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_AVI_DEMUX)) -#define GST_AVI_DEMUX_MAX_STREAMS 16 +#define GST_AVI_DEMUX_MAX_STREAMS 16 #define CHUNKID_TO_STREAMNR(chunkid) \ ((((chunkid) & 0xff) - '0') * 10 + \