2005-12-19 Edward Hervey <edward@fluendo.com>
+ * gst/avi/gstavidemux.c: (gst_avi_demux_stream_scan):
+ Stupid signedness issue...
+
+2005-12-19 Edward Hervey <edward@fluendo.com>
+
* gst/avi/gstavidemux.c: (gst_avi_demux_reset),
(gst_avi_demux_handle_src_event), (gst_avi_demux_parse_stream),
(gst_avi_demux_parse_odml), (gst_avi_demux_peek_tag),
GstFormat format = GST_FORMAT_BYTES;
guint64 pos = avi->offset;
guint64 length;
+ gint64 tmplength;
guint32 tag;
GstPad *peer;
GList *list = NULL;
if (!(peer = gst_pad_get_peer (avi->sinkpad)))
return FALSE;
- if (!(gst_pad_query_duration (peer, &format, &length)))
+ if (!(gst_pad_query_duration (peer, &format, &tmplength)))
return FALSE;
+ length = tmplength;
gst_object_unref (peer);
if (*index) {
while (1) {
gint stream_nr;
guint size;
+ gint64 tmpts, tmpdur;
if ((res =
gst_avi_demux_next_data_buffer (avi, &pos, &tag,
format = GST_FORMAT_TIME;
/* constant rate stream */
gst_avi_demux_src_convert (stream->pad, GST_FORMAT_BYTES,
- stream->total_bytes, &format, &entry->ts);
+ stream->total_bytes, &format, &tmpts);
+ entry->ts = tmpts;
gst_avi_demux_src_convert (stream->pad, GST_FORMAT_BYTES,
- stream->total_bytes + entry->size, &format, &entry->dur);
+ stream->total_bytes + entry->size, &format, &tmpdur);
+ entry->dur = tmpdur;
} else {
format = GST_FORMAT_TIME;
/* VBR stream */
gst_avi_demux_src_convert (stream->pad, GST_FORMAT_DEFAULT,
- stream->total_frames, &format, &entry->ts);
+ stream->total_frames, &format, &tmpts);
+ entry->ts = tmpts;
gst_avi_demux_src_convert (stream->pad, GST_FORMAT_DEFAULT,
- stream->total_frames + 1, &format, &entry->dur);
+ stream->total_frames + 1, &format, &tmpdur);
+ entry->dur = tmpdur;
}
entry->dur -= entry->ts;