From 1b7ab25512f8f0a368df76e568062e2573ee230b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 9 Sep 2016 11:46:11 +0300 Subject: [PATCH] element: Reset the stop position to NONE in seek_simple() When using seek_simple() in combination with other kinds of seeks, this becomes problematic. seek_simple() does not reset the stop position to GST_CLOCK_TIME_NONE but keeps whatever a previous seek did. So for example when doing a seek_simple() after a rate=-1 seek, we would usually get assertions that start>stop (and stop being the old stop from the rate=1 seek). https://bugzilla.gnome.org/show_bug.cgi?id=771104 --- gst/gstutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/gstutils.c b/gst/gstutils.c index b3186848f6..e1265a09ff 100644 --- a/gst/gstutils.c +++ b/gst/gstutils.c @@ -2415,7 +2415,7 @@ gst_element_seek_simple (GstElement * element, GstFormat format, g_return_val_if_fail (seek_pos >= 0, FALSE); return gst_element_seek (element, 1.0, format, seek_flags, - GST_SEEK_TYPE_SET, seek_pos, GST_SEEK_TYPE_NONE, 0); + GST_SEEK_TYPE_SET, seek_pos, GST_SEEK_TYPE_SET, GST_CLOCK_TIME_NONE); } /**