mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
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:
parent
50ac949a0f
commit
42599eab76
1 changed files with 5 additions and 12 deletions
|
@ -482,18 +482,11 @@ gst_avi_demux_handle_src_query (GstPad * pad, GstObject * parent,
|
|||
guint64 xlen = avi->avih->us_frame *
|
||||
avi->avih->tot_frames * GST_USECOND;
|
||||
|
||||
if (stream->is_vbr) {
|
||||
pos = gst_util_uint64_scale (xlen, stream->current_entry,
|
||||
stream->idx_n);
|
||||
GST_DEBUG_OBJECT (avi, "VBR perc convert frame %u, time %"
|
||||
GST_TIME_FORMAT, stream->current_entry, 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));
|
||||
}
|
||||
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 {
|
||||
/* we don't know */
|
||||
res = FALSE;
|
||||
|
|
Loading…
Reference in a new issue