Commit 566b0dce authored by Thiago Santos's avatar Thiago Santos

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
parent 8ed1ff68
......@@ -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;
/* BYTE seek event */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment