[pitivi] Adds the missing TestEffectFactory



commit 13d60cdbd780da02788fe5f01caf58184f3c8aff
Author: Thibault Saunier <tsaunier gnome org>
Date:   Thu Jul 15 12:25:19 2010 -0400

    Adds the missing TestEffectFactory

 pitivi/factories/test.py |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/factories/test.py b/pitivi/factories/test.py
index 087710d..2fda4fa 100644
--- a/pitivi/factories/test.py
+++ b/pitivi/factories/test.py
@@ -23,6 +23,7 @@
 
 import gst
 from pitivi.factories.base import SourceFactory
+from pitivi.factories.operation import EffectFactory
 from pitivi.stream import VideoStream, AudioStream
 
 class VideoTestSourceFactory(SourceFactory):
@@ -93,3 +94,11 @@ class AudioTestSourceFactory(SourceFactory):
         props.update({"volume": None})
         return props
 
+
+class TestEffectFactory(EffectFactory):
+    def __init__(self, stream):
+        EffectFactory.__init__(self, "identity", "identity")
+
+        caps = gst.Caps('video/x-raw-rgb')
+        self.addOutputStream(stream)
+        self.addInputStream(stream)



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