From: Thiago Santos Date: Thu, 12 Sep 2013 16:31:01 +0000 (-0300) Subject: qtdemux: only update stop position if seek requests it X-Git-Tag: 1.19.3~509^2~5335 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=566b0dce403288faf81e653705587c010ba760ca;p=platform%2Fupstream%2Fgstreamer.git 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 --- diff --git a/gst/isomp4/qtdemux.c b/gst/isomp4/qtdemux.c index 60e305a..d2f3b87 100644 --- a/gst/isomp4/qtdemux.c +++ b/gst/isomp4/qtdemux.c @@ -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 */