[pitivi: 1/10] seeker: cosmetic change
- From: Edward Hervey <edwardrv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi: 1/10] seeker: cosmetic change
- Date: Fri, 5 Mar 2010 08:00:03 +0000 (UTC)
commit 714e53d276825b6eab6cd182557887e0654fc840
Author: Alessandro Decina <alessandro d gmail com>
Date: Tue Mar 2 19:10:55 2010 +0100
seeker: cosmetic change
pitivi/utils.py | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/pitivi/utils.py b/pitivi/utils.py
index 296f7b9..fc535f9 100644
--- a/pitivi/utils.py
+++ b/pitivi/utils.py
@@ -289,18 +289,16 @@ class Seeker(Signallable):
self.format = None
def seek(self, position, format=gst.FORMAT_TIME, on_idle=False):
+ self.position = position
+ self.format = format
+
if self.pending_seek_id is None:
- self.position = position
- self.format = format
if on_idle:
gobject.idle_add(self._seekTimeoutCb)
else:
self._seekTimeoutCb()
self.pending_seek_id = self._scheduleSeek(self.timeout,
self._seekTimeoutCb)
- else:
- self.position = position
- self.format = format
def _scheduleSeek(self, timeout, callback):
return gobject.timeout_add(timeout, callback)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]