diff --git a/gstplugins_bad/ext/hls/m3u8.c b/gstplugins_bad/ext/hls/m3u8.c index 4c1fcfb4bad1a9ddc4bdc40bd89767a60a263042..c488b1352b1834d0d2eade466f24777a82291704 100644 --- a/gstplugins_bad/ext/hls/m3u8.c +++ b/gstplugins_bad/ext/hls/m3u8.c @@ -1041,6 +1041,7 @@ void gst_m3u8_advance_fragment_by_position(GstM3U8 * m3u8, GstClockTime position m3u8->sequence_position -= m3u8->current_file_duration; } } else { + GST_M3U8_UNLOCK (m3u8); return; } } diff --git a/gstreamer/plugins/elements/gstfdsrc.c b/gstreamer/plugins/elements/gstfdsrc.c index 6698eeebf9cbf35da647afe93359786a6147d388..ea6a6410c2ddeda6cbc9ffd9bcd30f7600ea232d 100644 --- a/gstreamer/plugins/elements/gstfdsrc.c +++ b/gstreamer/plugins/elements/gstfdsrc.c @@ -810,10 +810,6 @@ gst_fd_src_do_seek (GstBaseSrc * bsrc, GstSegment * segment) goto seek_failed; #endif - res = lseek (src->fd, offset, SEEK_SET); - if (G_UNLIKELY (res < 0 || res != offset)) - goto seek_failed; - segment->position = segment->start; segment->time = segment->start;