remuxer.py: do not crash when clicking open without having selected a file
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Thu, 13 Jan 2011 14:15:34 +0000 (14:15 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Mon, 26 Sep 2011 16:13:58 +0000 (17:13 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=639421

examples/remuxer.py

index 096344a..31d4606 100644 (file)
@@ -722,7 +722,7 @@ class PlayerWindow(gtk.Window):
         uri = chooser.get_uri()
         chooser.destroy()
 
-        if resp == SUCCESS:
+        if resp == SUCCESS and uri != None:
             self.load_file(uri)
             return True
         else: