Commit db20692b authored by Ronald S. Bultje's avatar Ronald S. Bultje
Browse files

gst/avi/gstavidemux.c: Compiler pains.

Original commit message from CVS:
* gst/avi/gstavidemux.c: (gst_avi_demux_handle_src_query):
Compiler pains.
parent 94e9812b
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:
......
......@@ -387,7 +387,7 @@ gst_avi_demux_handle_src_query (GstPad * pad, GstQuery * query)
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;
......@@ -418,7 +418,8 @@ gst_avi_demux_handle_src_query (GstPad * pad, GstQuery * query)
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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment