mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
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
This commit is contained in:
parent
a865f6545a
commit
d520e25db3
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue