mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 20:51:13 +00:00
validate:tools:launcher: Take into account the position value when rendering
When rendering a files we try to use the size of the outputed file to determine wether we are timeout or not, but if that fails try to check the position
This commit is contained in:
parent
10c192f693
commit
ead3eb98a4
1 changed files with 5 additions and 1 deletions
|
@ -351,7 +351,11 @@ class GstValidateTest(Test):
|
|||
def get_current_size(self):
|
||||
position = self.get_current_position()
|
||||
|
||||
try:
|
||||
size = os.stat(urlparse.urlparse(self.dest_file).path).st_size
|
||||
except OSError as e:
|
||||
return position
|
||||
|
||||
self.debug("Size: %s" % size)
|
||||
return size
|
||||
|
||||
|
|
Loading…
Reference in a new issue