From 42599eab7658b7fbe844a13310b2771a72ca9c90 Mon Sep 17 00:00:00 2001 From: Jimmy Ohn Date: Fri, 27 Feb 2015 18:12:09 +0900 Subject: [PATCH] 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 --- gst/avi/gstavidemux.c | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/gst/avi/gstavidemux.c b/gst/avi/gstavidemux.c index b9ec765..ce965de 100644 --- a/gst/avi/gstavidemux.c +++ b/gst/avi/gstavidemux.c @@ -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; -- 2.7.4