From b55f157d6f66fc395d8ceb4c1285ce0bc1ed017f Mon Sep 17 00:00:00 2001 From: Youness Alaoui Date: Mon, 22 Aug 2011 23:41:39 +0000 Subject: [PATCH] hlsdemux: Do not seek in a live stream --- gst/hls/gsthlsdemux.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gst/hls/gsthlsdemux.c b/gst/hls/gsthlsdemux.c index 56d743fc74..b5fefcd431 100644 --- a/gst/hls/gsthlsdemux.c +++ b/gst/hls/gsthlsdemux.c @@ -331,6 +331,12 @@ gst_hls_demux_src_event (GstPad * pad, GstEvent * event) GstM3U8MediaFile *file; GST_INFO_OBJECT (demux, "Received GST_EVENT_SEEK"); + + if (gst_m3u8_client_is_live (demux->client)) { + GST_WARNING_OBJECT (demux, "Received seek event for live stream"); + return FALSE; + } + gst_event_parse_seek (event, &rate, &format, &flags, &start_type, &start, &stop_type, &stop);