[pitivi: 1/12] discoverer: add some debug logs to show how many unfixed pads are left.



commit ff5a62be3f56d132b7c77c23301170acd9340297
Author: Alessandro Decina <alessandro d gmail com>
Date:   Fri Mar 5 21:56:51 2010 +0100

    discoverer: add some debug logs to show how many unfixed pads are left.

 pitivi/discoverer.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/discoverer.py b/pitivi/discoverer.py
index 9ec475e..9e90bc7 100644
--- a/pitivi/discoverer.py
+++ b/pitivi/discoverer.py
@@ -631,6 +631,7 @@ class Discoverer(Signallable, Loggable):
         pad.disconnect_by_func(self._capsNotifyCb)
 
         self.unfixed_pads -= 1
+        self.debug("unfixed pads %d", self.unfixed_pads)
         stream = self._addStreamFromPad(ghost)
         if isinstance(stream, VideoStream):
             stream.thumbnail = self.thumbnails[ghost]
@@ -665,6 +666,7 @@ class Discoverer(Signallable, Loggable):
             else:
                 pad.connect("notify::caps", self._capsNotifyCb)
             self.unfixed_pads += 1
+            self.debug("unfixed pads %d", self.unfixed_pads)
 
     def _addStreamFromPad(self, pad):
         self._maybeQueryDuration(pad)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]