Commit 7cda13be authored by Edward Hervey's avatar Edward Hervey

* pitivi/playground.py:

gst-python doesn't have the GstError quarks defined yet. Let's just
use the strings instead.


git-svn-id: svn+ssh://svn.gnome.org/svn/pitivi/trunk@765 d3729300-e425-0410-8a4c-d956edccc248
parent 065cf733
2006-04-24 Edward Hervey <edward@fluendo.com>
* pitivi/playground.py:
gst-python doesn't have the GstError quarks defined yet. Let's just
use the strings instead.
2006-04-24 Edward Hervey <edward@fluendo.com>
* configure.ac:
......
......@@ -289,14 +289,14 @@ class PlayGround(gobject.GObject):
gst.warning("GError : code:%s, domain:%s (%s), message:%s" % (gerror.code, gerror.domain,
type(gerror.domain), gerror.message))
if bin_contains(self.vsinkthread, source):
if gerror.domain == gst.RESOURCE_ERROR and gerror.code == gst.RESOURCE_ERROR_BUSY:
if gerror.domain == 'gst-resource-error-quark' and gerror.code == gst.RESOURCE_ERROR_BUSY:
self.emit("error", "Video output is busy",
"Please check that your video output device isn't already used by another application")
else:
self.emit("error", "Video output problem",
"There is a problem with your video output device")
elif bin_contains(self.asinkthread, source):
if gerror.domain == gst.RESOURCE_ERROR and gerror.code == gst.RESOURCE_ERROR_BUSY:
if gerror.domain == 'gst-resource-error-quark' and gerror.code == gst.RESOURCE_ERROR_BUSY:
self.emit("error", "Audio output device is busy",
"Please check that your audio output device isn't already used by another application.")
else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment