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
@ -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…
x
Reference in New Issue
Block a user