summaryrefslogtreecommitdiff
path: root/gst/mpegtsdemux
diff options
context:
space:
mode:
authorLuis de Bethencourt <luis@debethencourt.com>2015-07-29 16:51:48 +0100
committerLuis de Bethencourt <luis@debethencourt.com>2015-07-29 16:52:08 +0100
commit7ddaf8741bd628abb249eb65da75576b630996b2 (patch)
tree6184b9cc193b5f060cf9dddf1e54f36539fcd16f /gst/mpegtsdemux
parenta4a2638d86e26b61733bc0dbaf4b1b8c78abb50c (diff)
downloadgstreamer-plugins-bad-7ddaf8741bd628abb249eb65da75576b630996b2.tar.gz
mpegtsbase: remove redundant check
No need to check if done is True since break will already terminate the for loop.
Diffstat (limited to 'gst/mpegtsdemux')
-rw-r--r--gst/mpegtsdemux/mpegtsbase.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gst/mpegtsdemux/mpegtsbase.c b/gst/mpegtsdemux/mpegtsbase.c
index 9b8e897a3..b431f6e04 100644
--- a/gst/mpegtsdemux/mpegtsbase.c
+++ b/gst/mpegtsdemux/mpegtsbase.c
@@ -1241,7 +1241,6 @@ mpegts_base_scan (MpegTSBase * base)
if (!gst_pad_peer_query_duration (base->sinkpad, format, &tmpval))
goto beach;
upstream_size = tmpval;
- done = FALSE;
/* The scanning takes place on the last 2048kB. Considering PCR should
* be present at least every 100ms, this should cope with streams
@@ -1250,7 +1249,7 @@ mpegts_base_scan (MpegTSBase * base)
/* Find last PCR value, searching backwards by chunks of 300 MPEG-ts packets */
for (seek_pos = MAX (0, upstream_size - 56400);
- seek_pos >= reverse_limit && !done; seek_pos -= 56400) {
+ seek_pos >= reverse_limit; seek_pos -= 56400) {
mpegts_packetizer_clear (base->packetizer);
GST_DEBUG ("Grabbing %" G_GUINT64_FORMAT " => %" G_GUINT64_FORMAT, seek_pos,
seek_pos + 56400);
@@ -1274,7 +1273,6 @@ mpegts_base_scan (MpegTSBase * base)
if (base->packetizer->nb_seen_offsets > initial_pcr_seen) {
GST_DEBUG ("Got last PCR(s) (total seen:%d)",
base->packetizer->nb_seen_offsets);
- done = TRUE;
break;
}
}