mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
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
This commit is contained in:
parent
1ac2a7c388
commit
1b7ab25512
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue