From: Vincent Penquerc'h Date: Thu, 13 Jan 2011 14:15:34 +0000 (+0000) Subject: remuxer.py: do not crash when clicking open without having selected a file X-Git-Tag: 1.19.3~485^2~253 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3e3795068eca569c3ce5748735f3a61732ae5b6d;p=platform%2Fupstream%2Fgstreamer.git remuxer.py: do not crash when clicking open without having selected a file https://bugzilla.gnome.org/show_bug.cgi?id=639421 --- diff --git a/examples/remuxer.py b/examples/remuxer.py index 096344a..31d4606 100644 --- a/examples/remuxer.py +++ b/examples/remuxer.py @@ -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: