mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
qtdemux: fragmented support; avoid adjustment for keyframe seek
... since all index data may not yet be available at that time.
This commit is contained in:
parent
08d25a69d5
commit
4b8ead4340
1 changed files with 4 additions and 1 deletions
|
@ -1281,7 +1281,10 @@ gst_qtdemux_perform_seek (GstQTDemux * qtdemux, GstSegment * segment)
|
|||
GST_DEBUG_OBJECT (qtdemux, "seeking to %" GST_TIME_FORMAT,
|
||||
GST_TIME_ARGS (desired_offset));
|
||||
|
||||
if (segment->flags & GST_SEEK_FLAG_KEY_UNIT) {
|
||||
/* may not have enough fragmented info to do this adjustment,
|
||||
* and we can't scan (and probably should not) at this time with
|
||||
* possibly flushing upstream */
|
||||
if ((segment->flags & GST_SEEK_FLAG_KEY_UNIT) && !qtdemux->fragmented) {
|
||||
gint64 min_offset;
|
||||
|
||||
gst_qtdemux_adjust_seek (qtdemux, desired_offset, &min_offset, NULL);
|
||||
|
|
Loading…
Reference in a new issue