Original commit message from CVS:
* gst/avi/gstavidemux.c: (gst_avi_demux_handle_src_query):
Compiler pains.
2005-06-30 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
+ * gst/avi/gstavidemux.c: (gst_avi_demux_handle_src_query):
+ Compiler pains.
+
+2005-06-30 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
+
* configure.ac:
* gst/avi/Makefile.am:
* gst/avi/gstavi.c: (plugin_init):
switch (GST_QUERY_TYPE (query)) {
case GST_QUERY_POSITION:{
- gint64 len, pos;
+ gint64 len, pos = 0;
len = (((gfloat) stream->strh->scale) * stream->strh->length /
stream->strh->rate) * GST_SECOND;
pos = stream->current_frame * demux->avih->us_frame * GST_USECOND;
}
}
- gst_query_set_position (query, GST_FORMAT_TIME, pos, len);
+ if (res)
+ gst_query_set_position (query, GST_FORMAT_TIME, pos, len);
break;
}
default: