summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2009-10-22 02:09:08 +0100
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2009-10-22 02:09:08 +0100
commit457ac565ba157aee8f6c4c9795e06d60476fb69a (patch)
tree1b848e52224d148d8ac318734c68c8d5f417724a
parent34a7a90f57a8da2f64a7010d2c9aa61620673655 (diff)
avidemux: fix compilation with debugging disabled
total_idx is always evaluated.
-rw-r--r--gst/avi/gstavidemux.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gst/avi/gstavidemux.c b/gst/avi/gstavidemux.c
index bc0f17f0a..00a58ed26 100644
--- a/gst/avi/gstavidemux.c
+++ b/gst/avi/gstavidemux.c
@@ -1271,9 +1271,10 @@ gst_avi_demux_get_buffer_info (GstAviDemux * avi, GstAviStream * stream,
static gboolean
gst_avi_demux_do_index_stats (GstAviDemux * avi)
{
+ guint total_idx = 0;
guint i;
#ifndef GST_DISABLE_GST_DEBUG
- guint total_idx = 0, total_max = 0;
+ guint total_max = 0;
#endif
/* get stream stats now */
@@ -1292,8 +1293,8 @@ gst_avi_demux_do_index_stats (GstAviDemux * avi)
gst_avi_demux_get_buffer_info (avi, stream, stream->idx_n - 1,
NULL, &stream->idx_duration, NULL, NULL);
-#ifndef GST_DISABLE_GST_DEBUG
total_idx += stream->idx_n;
+#ifndef GST_DISABLE_GST_DEBUG
total_max += stream->idx_max;
#endif
GST_INFO_OBJECT (avi, "Stream %d, dur %" GST_TIME_FORMAT ", %6u entries, "
@@ -1303,8 +1304,8 @@ gst_avi_demux_do_index_stats (GstAviDemux * avi)
(guint) (stream->idx_n * sizeof (GstAviIndexEntry)),
(guint) (stream->idx_max * sizeof (GstAviIndexEntry)));
}
-#ifndef GST_DISABLE_GST_DEBUG
total_idx *= sizeof (GstAviIndexEntry);
+#ifndef GST_DISABLE_GST_DEBUG
total_max *= sizeof (GstAviIndexEntry);
#endif
GST_INFO_OBJECT (avi, "%u bytes for index vs %u ideally, %u wasted",