avidemux: remove not needed code

In gst_avi_demux_handle_src_query, there is not needed code.
We already check about stream is vbr or not at the upper line.
o, we don't need to check this condition becase stream is not
vbr 100% in this case.

https://bugzilla.gnome.org/show_bug.cgi?id=745276
This commit is contained in:
Jimmy Ohn 2015-02-27 18:12:09 +09:00 committed by Sebastian Dröge
parent 50ac949a0f
commit 42599eab76

View file

@ -482,18 +482,11 @@ gst_avi_demux_handle_src_query (GstPad * pad, GstObject * parent,
guint64 xlen = avi->avih->us_frame * guint64 xlen = avi->avih->us_frame *
avi->avih->tot_frames * GST_USECOND; avi->avih->tot_frames * GST_USECOND;
if (stream->is_vbr) { pos = gst_util_uint64_scale (xlen, stream->current_total,
pos = gst_util_uint64_scale (xlen, stream->current_entry, stream->total_bytes);
stream->idx_n); GST_DEBUG_OBJECT (avi,
GST_DEBUG_OBJECT (avi, "VBR perc convert frame %u, time %" "CBR perc convert bytes %u, time %" GST_TIME_FORMAT,
GST_TIME_FORMAT, stream->current_entry, GST_TIME_ARGS (pos)); stream->current_total, GST_TIME_ARGS (pos));
} else {
pos = gst_util_uint64_scale (xlen, stream->current_total,
stream->total_bytes);
GST_DEBUG_OBJECT (avi,
"CBR perc convert bytes %u, time %" GST_TIME_FORMAT,
stream->current_total, GST_TIME_ARGS (pos));
}
} else { } else {
/* we don't know */ /* we don't know */
res = FALSE; res = FALSE;