mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 21:16:24 +00:00
validate:scenario: Do not care about the position if we are not at least in PAUSED state
At that time the position query will be meaningless so we should just go to the next action.
This commit is contained in:
parent
4227655db1
commit
52e39a4fcb
1 changed files with 5 additions and 4 deletions
|
@ -692,8 +692,8 @@ get_position (GstValidateScenario * scenario)
|
|||
has_dur = gst_element_query_duration (pipeline, GST_FORMAT_TIME, &duration)
|
||||
&& GST_CLOCK_TIME_IS_VALID (duration);
|
||||
|
||||
if (!has_pos) {
|
||||
GST_LOG ("Unknown position");
|
||||
if (!has_pos && GST_STATE (pipeline) >= GST_STATE_PAUSED) {
|
||||
GST_LOG ("Unknown position: %" GST_TIME_FORMAT, GST_TIME_ARGS (position));
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
@ -727,8 +727,9 @@ get_position (GstValidateScenario * scenario)
|
|||
GST_TIME_ARGS (stop_with_tolerance));
|
||||
}
|
||||
|
||||
if (act && ((rate > 0 && (GstClockTime) position >= act->playback_time) ||
|
||||
(rate < 0 && (GstClockTime) position <= act->playback_time))) {
|
||||
if (act && (((rate > 0 && (GstClockTime) position >= act->playback_time) ||
|
||||
(rate < 0 && (GstClockTime) position <= act->playback_time)) ||
|
||||
(GST_STATE (pipeline) < GST_STATE_PAUSED))) {
|
||||
GstValidateActionType *type;
|
||||
|
||||
type = g_hash_table_lookup (action_types_table, act->type);
|
||||
|
|
Loading…
Reference in a new issue