mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
qtdemux: only update stop position if seek requests it
Check for GST_SEEK_TYPE_NONE for stop poistion and only update the stop time if it is requested. Otherwise just maintain whatever was stored at the segment https://bugzilla.gnome.org/show_bug.cgi?id=707530
This commit is contained in:
parent
8ed1ff6821
commit
566b0dce40
1 changed files with 6 additions and 1 deletions
|
@ -1304,7 +1304,12 @@ gst_qtdemux_do_push_seek (GstQTDemux * qtdemux, GstPad * pad, GstEvent * event)
|
|||
} else {
|
||||
qtdemux->push_seek_start = key_cur;
|
||||
}
|
||||
qtdemux->push_seek_stop = original_stop;
|
||||
|
||||
if (stop_type == GST_SEEK_TYPE_NONE) {
|
||||
qtdemux->push_seek_stop = qtdemux->segment.stop;
|
||||
} else {
|
||||
qtdemux->push_seek_stop = original_stop;
|
||||
}
|
||||
GST_OBJECT_UNLOCK (qtdemux);
|
||||
|
||||
/* BYTE seek event */
|
||||
|
|
Loading…
Reference in a new issue