[pitivi] pipeline: Add unused argument for compatibility
- From: Jean-FranÃois Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] pipeline: Add unused argument for compatibility
- Date: Sun, 2 Sep 2012 03:56:18 +0000 (UTC)
commit 23057ab4ac70b6e36d4efe7a5479af879d57a281
Author: Thibault Saunier <thibault saunier collabora com>
Date: Mon Jul 2 17:17:47 2012 -0400
pipeline: Add unused argument for compatibility
pitivi/utils/pipeline.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/pitivi/utils/pipeline.py b/pitivi/utils/pipeline.py
index 13dba1e..99f7182 100644
--- a/pitivi/utils/pipeline.py
+++ b/pitivi/utils/pipeline.py
@@ -161,7 +161,7 @@ class SimplePipeline(Loggable, Signallable):
# is known right away and we can set the viewer synchronously, avoiding
# the creation of an external window.
# Afterwards, the xid-message is handled async (to avoid deadlocks).
- self._bus.set_sync_handler(self._busSyncMessageHandler)
+ self._bus.set_sync_handler(self._busSyncMessageHandler, None)
self._has_sync_bus_handler = True
self._listening = False # for the position handler
self._listeningInterval = 300 # default 300ms
@@ -419,7 +419,7 @@ class SimplePipeline(Loggable, Signallable):
else:
if self._has_sync_bus_handler is False:
# Pass message async to the sync bus handler
- self._busSyncMessageHandler(unused_bus, message)
+ self._busSyncMessageHandler(unused_bus, message, None)
self.info("%s [%r]" % (message.type, message.src))
def _queryDurationAsync(self, *args, **kwargs):
@@ -433,7 +433,7 @@ class SimplePipeline(Loggable, Signallable):
self.error("error from %s: %s (%s)" % (source, error, detail))
self.emit('error', error.message, detail)
- def _busSyncMessageHandler(self, unused_bus, message):
+ def _busSyncMessageHandler(self, unused_bus, message, unused_user_data):
if message.type == gst.MESSAGE_ELEMENT:
name = message.structure.get_name()
if name == 'prepare-xwindow-id':
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]