Elements that pass a seek with INSTANT_RATE flag to
gst_segment_do_seek() haven't been updated and we should
refuse the seek.
g_return_val_if_fail (segment != NULL, FALSE);
g_return_val_if_fail (segment->format == format, FALSE);
+ /* Elements should not pass instant-rate seeks to gst_segment_do_seek().
+ * This helps catch elements that have not been updated yet */
+ if (flags & GST_SEEK_FLAG_INSTANT_RATE_CHANGE)
+ return FALSE;
+
update_start = update_stop = TRUE;
position = segment->position;