From f7c5be9dd1af21bc678ad68c8c3cf9e515c6a664 Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Fri, 20 Jul 2012 14:41:57 +0200 Subject: [PATCH] asfdemux: slightly relax supported seek requirements Fixes https://bugzilla.gnome.org/show_bug.cgi?id=680279 --- gst/asfdemux/gstasfdemux.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gst/asfdemux/gstasfdemux.c b/gst/asfdemux/gstasfdemux.c index adf894c5a5..86f1720e15 100644 --- a/gst/asfdemux/gstasfdemux.c +++ b/gst/asfdemux/gstasfdemux.c @@ -644,8 +644,9 @@ gst_asf_demux_handle_seek_event (GstASFDemux * demux, GstEvent * event) return FALSE; } /* we can (re)construct the start later on, but not the end */ - if (stop_type != GST_SEEK_TYPE_NONE) { - GST_LOG_OBJECT (demux, "streaming; end type must be NONE"); + if (stop_type != GST_SEEK_TYPE_NONE && + (stop_type != GST_SEEK_TYPE_SET || GST_CLOCK_TIME_IS_VALID (stop))) { + GST_LOG_OBJECT (demux, "streaming; end position must be NONE"); return FALSE; } gst_event_ref (event);