mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 03:01:03 +00:00
validate:scenario: Move the check about whether we are still seeking upper in the function
Avoiding to try to get position and do operations on a pipeline that is seeking
This commit is contained in:
parent
4dc3f5171e
commit
f708156ff6
1 changed files with 6 additions and 7 deletions
|
@ -664,6 +664,12 @@ get_position (GstValidateScenario * scenario)
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
/* TODO what about non flushing seeks? */
|
||||
if (priv->last_seek) {
|
||||
GST_INFO_OBJECT (scenario, "Still seeking -- not executing action");
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
query = gst_query_new_segment (GST_FORMAT_DEFAULT);
|
||||
if (gst_element_query (GST_ELEMENT (scenario->pipeline), query))
|
||||
gst_query_parse_segment (query, &rate, NULL, NULL, NULL);
|
||||
|
@ -716,13 +722,6 @@ get_position (GstValidateScenario * scenario)
|
|||
(rate < 0 && (GstClockTime) position <= act->playback_time))) {
|
||||
GstValidateActionType *type;
|
||||
|
||||
/* TODO what about non flushing seeks? */
|
||||
/* TODO why is this inside the action time if ? */
|
||||
if (priv->last_seek) {
|
||||
GST_INFO_OBJECT (scenario, "Still seeking -- not executing action");
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
type = g_hash_table_lookup (action_types_table, act->type);
|
||||
|
||||
if (act->repeat == -1 &&
|
||||
|
|
Loading…
Reference in a new issue