[pitivi] tests/test_discoverer: Really simulate a picture source.



commit 486bf29e1d58574f1de08ec4196f7ac0d45be6f0
Author: Edward Hervey <bilboed bilboed com>
Date:   Wed Jun 24 15:58:52 2009 +0200

    tests/test_discoverer: Really simulate a picture source.

 tests/test_discoverer.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/tests/test_discoverer.py b/tests/test_discoverer.py
index 36ef727..470f095 100644
--- a/tests/test_discoverer.py
+++ b/tests/test_discoverer.py
@@ -434,6 +434,8 @@ class TestStateChange(TestCase):
         # only image
         pngdec = gst.element_factory_make('pngdec')
         self.discoverer.pipeline.add(pngdec)
+        # images don't have duration
+        self.discoverer.current_duration = gst.CLOCK_TIME_NONE
         pad = pngdec.get_pad('src')
         caps = gst.Caps(pad.get_caps()[0])
         caps[0]['width'] = 320



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