summaryrefslogtreecommitdiff
path: root/gst/mpegdemux/gstmpegdemux.c
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2016-05-13 13:27:37 +0100
committerTim-Philipp Müller <tim@centricular.com>2016-05-15 10:18:11 +0100
commitd520e25db314f2a29c140b3344021079051d2d57 (patch)
tree1c14cbab024c9f8ff9d782b4254d39ca48db8264 /gst/mpegdemux/gstmpegdemux.c
parenta865f6545a2330ce25c0767f7ab248971aeefcc5 (diff)
mpegdemux: don't do bogus adjustments on seek if we have no first_pts
Fixes bogus segment and gap events with start=GST_CLOCK_TIME_NONE if we failed to find a first_pts. https://bugzilla.gnome.org/show_bug.cgi?id=623860
Diffstat (limited to 'gst/mpegdemux/gstmpegdemux.c')
-rw-r--r--gst/mpegdemux/gstmpegdemux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/mpegdemux/gstmpegdemux.c b/gst/mpegdemux/gstmpegdemux.c
index 05a1a324f..5d7507bee 100644
--- a/gst/mpegdemux/gstmpegdemux.c
+++ b/gst/mpegdemux/gstmpegdemux.c
@@ -1274,7 +1274,7 @@ gst_ps_demux_handle_seek_pull (GstPsDemux * demux, GstEvent * event)
}
/* check the limits */
- if (seeksegment.rate > 0.0) {
+ if (seeksegment.rate > 0.0 && first_pts != G_MAXUINT64) {
if (seeksegment.start < first_pts - demux->base_time) {
seeksegment.start = first_pts - demux->base_time;
seeksegment.position = seeksegment.start;