validate:launcher: Always set the protocol when creating a GstValidateMediaDescriptor
authorThibault Saunier <tsaunier@gnome.org>
Wed, 13 May 2015 13:30:23 +0000 (15:30 +0200)
committerThibault Saunier <tsaunier@gnome.org>
Thu, 14 May 2015 13:56:57 +0000 (15:56 +0200)
Summary: Depends on D174

Reviewers: Mathieu_Du, gdesmott

Differential Revision: http://phabricator.freedesktop.org/D175

validate/launcher/baseclasses.py

index 33b8b49..47cf201 100644 (file)
@@ -1566,6 +1566,8 @@ class GstValidateMediaDescriptor(MediaDescriptor):
         self.media_xml.attrib["duration"]
         self.media_xml.attrib["seekable"]
 
+        self.set_protocol(urlparse.urlparse(urlparse.urlparse(self.get_uri()).scheme).scheme)
+
     @staticmethod
     def new_from_uri(uri, verbose=False, full=False):
         media_path = utils.url2path(uri)