validate:pipeline-monitor: Avoid wrong position issue
If the reported position or duration is NONE, do not check its validity
This commit is contained in:
parent
035d37f762
commit
f27e98caee
@ -126,9 +126,9 @@ print_position (GstValidateMonitor * monitor)
|
||||
goto done;
|
||||
}
|
||||
|
||||
if (position > duration) {
|
||||
GST_VALIDATE_REPORT (monitor,
|
||||
QUERY_POSITION_SUPERIOR_DURATION,
|
||||
if (GST_CLOCK_TIME_IS_VALID (duration) && GST_CLOCK_TIME_IS_VALID (position)
|
||||
&& position > duration) {
|
||||
GST_VALIDATE_REPORT (monitor, QUERY_POSITION_SUPERIOR_DURATION,
|
||||
"Reported position %" GST_TIME_FORMAT " > reported duration %"
|
||||
GST_TIME_FORMAT, GST_TIME_ARGS (position), GST_TIME_ARGS (duration));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user