mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-01 03:52:25 +00:00
validate:launcher: Add proper check for is_seekable
The seekable variable in media_info file is of type string. When checking if the file is seekable using is_seekable, it just returns the string, resulting in it always being true. It should actually be comparing the string and returning true or false based on comparison https://bugzilla.gnome.org/show_bug.cgi?id=755854
This commit is contained in:
parent
a02609fc37
commit
e2d2a6865f
1 changed files with 1 additions and 1 deletions
|
@ -1695,7 +1695,7 @@ class GstValidateMediaDescriptor(MediaDescriptor):
|
|||
return self.media_xml.attrib["protocol"]
|
||||
|
||||
def is_seekable(self):
|
||||
return self.media_xml.attrib["seekable"]
|
||||
return self.media_xml.attrib["seekable"].lower() == "true"
|
||||
|
||||
def can_play_reverse(self):
|
||||
return True
|
||||
|
|
Loading…
Reference in a new issue