2007-02-13 Stefan Kost <ensonic@users.sf.net>
+ * gst/avi/gstavidemux.c: (gst_avi_demux_handle_src_query),
+ (gst_avi_demux_parse_index), (gst_avi_demux_stream_index),
+ (gst_avi_demux_sync), (gst_avi_demux_massage_index),
+ (gst_avi_demux_calculate_durations_from_index),
+ (gst_avi_demux_push_event), (gst_avi_demux_stream_header_pull),
+ (gst_avi_demux_process_next_entry), (gst_avi_demux_stream_data),
+ (gst_avi_demux_loop):
+ Put debug stuff into #ifndef GST_DISABLE_DEBUG #endif
+
+2007-02-13 Stefan Kost <ensonic@users.sf.net>
+
* configure.ac:
* docs/plugins/Makefile.am:
Add crossreferences to glib/gobject/gstream docs.
GList *entries_list = NULL;
guint i, num, n;
- /* DEBUG */
+#ifndef GST_DISABLE_DEBUG
gulong _nr_keyframes = 0;
-
- /* DEBUG */
+#endif
if (!buf || !GST_BUFFER_SIZE (buf)) {
*_entries_list = NULL;
/* all audio frames are keyframes */
target->flags |= GST_AVI_INDEX_ENTRY_FLAG_KEYFRAME;
}
- /* DEBUG */
+#ifndef GST_DISABLE_DEBUG
if (target->flags & GST_AVI_INDEX_ENTRY_FLAG_KEYFRAME)
_nr_keyframes++;
- /* DEBUG */
+#endif
/* stream duration unknown, now we can calculate it */
if (stream->idx_duration == -1)
g_list_length (list));
if (list) {
-
+#ifndef GST_DISABLE_DEBUG
+ guint num_added_total = 0;
+#endif
GST_LOG_OBJECT (avi,
"I'm now going to cut large chunks into smaller pieces");
&& stream->strh->type == GST_RIFF_FCC_auds) {
guint32 ideal_size;
gst_avi_index_entry *entries;
- gint old_size, num_added;
+ guint old_size, num_added;
GList *node2;
/* cut in 1/10th of a second */
entry2->frames_before++;
}
}
+#ifndef GST_DISABLE_DEBUG
+ num_added_total += num_added;
+#endif
}
}
}
+#ifndef GST_DISABLE_DEBUG
+ if (num_added_total)
+ GST_LOG ("added %u new index entries", num_added_total);
+#endif
GST_LOG_OBJECT (avi, "I'm now going to reorder the index entries for time");