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:
Vineeth T M 2015-11-12 09:04:01 +09:00 committed by Thibault Saunier
parent a02609fc37
commit e2d2a6865f

View file

@ -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