summaryrefslogtreecommitdiff
path: root/gst/mpegdemux
diff options
context:
space:
mode:
authorSanjay NM <sanjay.nm@samsung.com>2014-09-18 14:24:13 +0530
committerSebastian Dröge <sebastian@centricular.com>2014-09-18 12:54:05 +0300
commit44874d35b576370815dee5be6e990f30ff900d2c (patch)
tree57cca72beb92043f013007701604aabda0a08611 /gst/mpegdemux
parent4f60ecdd98194cd8a80f4d0637fb4d984bbbeee3 (diff)
downloadgstreamer-plugins-bad-44874d35b576370815dee5be6e990f30ff900d2c.tar.gz
mpegdemux: removed an unwanted initialization and a variable
https://bugzilla.gnome.org/show_bug.cgi?id=736863
Diffstat (limited to 'gst/mpegdemux')
-rw-r--r--gst/mpegdemux/gstmpegdemux.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/gst/mpegdemux/gstmpegdemux.c b/gst/mpegdemux/gstmpegdemux.c
index 90c00cb14..a58ea61f8 100644
--- a/gst/mpegdemux/gstmpegdemux.c
+++ b/gst/mpegdemux/gstmpegdemux.c
@@ -1102,7 +1102,6 @@ find_offset (GstFluPSDemux * demux, guint64 scr,
guint64 scr_rate_n = max_scr_offset - min_scr_offset;
guint64 scr_rate_d = max_scr - min_scr;
guint64 fscr = scr;
- gboolean found;
guint64 offset;
if (recursion_count > MAX_RECURSION_COUNT) {
@@ -1113,11 +1112,8 @@ find_offset (GstFluPSDemux * demux, guint64 scr,
MIN (gst_util_uint64_scale (scr - min_scr, scr_rate_n,
scr_rate_d), demux->sink_segment.stop);
- found = gst_flups_demux_scan_forward_ts (demux, &offset, SCAN_SCR, &fscr, 0);
-
- if (!found) {
- found =
- gst_flups_demux_scan_backward_ts (demux, &offset, SCAN_SCR, &fscr, 0);
+ if (!gst_flups_demux_scan_forward_ts (demux, &offset, SCAN_SCR, &fscr, 0)) {
+ gst_flups_demux_scan_backward_ts (demux, &offset, SCAN_SCR, &fscr, 0);
}
if (fscr == scr || fscr == min_scr || fscr == max_scr) {
@@ -2794,7 +2790,7 @@ static inline GstFlowReturn
gst_flups_demux_pull_block (GstPad * pad, GstFluPSDemux * demux,
guint64 offset, guint size)
{
- GstFlowReturn ret = GST_FLOW_OK;
+ GstFlowReturn ret;
GstBuffer *buffer = NULL;
ret = gst_pad_pull_range (pad, offset, size, &buffer);