remuxer.py: do not crash when clicking open without having selected a file

https://bugzilla.gnome.org/show_bug.cgi?id=639421
This commit is contained in:
Vincent Penquerc'h 2011-01-13 14:15:34 +00:00 committed by Tim-Philipp Müller
parent bbeaad89bd
commit 3e3795068e

View 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: