[pitivi] TrackObject: add logging capability
- From: Edward Hervey <edwardrv src gnome org>
- To: svn-commits-list gnome org
- Subject: [pitivi] TrackObject: add logging capability
- Date: Wed, 24 Jun 2009 14:03:02 +0000 (UTC)
commit 85a46f0ece7776ea52f5ea71dc2aba13ee29f052
Author: Edward Hervey <bilboed bilboed com>
Date: Fri Jun 12 13:14:53 2009 +0200
TrackObject: add logging capability
pitivi/timeline/track.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/timeline/track.py b/pitivi/timeline/track.py
index d898a3b..fa6f24b 100644
--- a/pitivi/timeline/track.py
+++ b/pitivi/timeline/track.py
@@ -24,6 +24,7 @@ import weakref
from pitivi.signalinterface import Signallable
from pitivi.utils import UNKNOWN_DURATION
+from pitivi.log.loggable import Loggable
from pitivi.stream import VideoStream, AudioStream
from pitivi.factories.test import VideoTestSourceFactory, \
AudioTestSourceFactory
@@ -229,7 +230,7 @@ class Interpolator(Signallable):
keyframes = property(getKeyframes)
-class TrackObject(Signallable):
+class TrackObject(Signallable, Loggable):
__signals__ = {
'start-changed': ['start'],
@@ -244,6 +245,8 @@ class TrackObject(Signallable):
def __init__(self, factory, stream, start=0,
duration=0, in_point=0,
media_duration=0, priority=0):
+ Loggable.__init__(self)
+ self.debug("factory:%r", factory)
self.factory = factory
self.stream = stream
self.track = None
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]