Author: schwardt
Date: Mon Feb 19 20:29:45 2007
New Revision: 2499

Modified:
   trunk/WIP/record/test/tuner.py

Log:
- testing remove_filter


Modified: trunk/WIP/record/test/tuner.py
==============================================================================
--- trunk/WIP/record/test/tuner.py      (original)
+++ trunk/WIP/record/test/tuner.py      Mon Feb 19 20:29:45 2007
@@ -75,6 +75,11 @@
         self._splitter.emit("set-filter", name, pidstr)
 
 
+    def remove_filter(self, name):
+        # TODO FIXME remove pids from tuner
+        self._splitter.emit("remove-filter", name)
+
+
 
 # test app logic
 
@@ -124,10 +129,16 @@
     c.add_filter(filename, *pids)
 
 
+def stop_recording(filename):
+    c.remove_filter(filename)
+
+
 create_recording('zdf.ts', 545, 546)
 
 # start 3sat in 3 seconds
 kaa.notifier.OneShotTimer(create_recording, '3sat.ts', 561, 562).start(3)
 # start second ZDF recording in 5 seconds
 kaa.notifier.OneShotTimer(create_recording, 'zdf2.ts', 545, 546).start(5)
+# stop second ZDF recording 5 seconds later
+kaa.notifier.OneShotTimer(stop_recording, 'zdf2.ts').start(10)
 kaa.notifier.loop()

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to