[pitivi: 2/13] tests/test_discoverer: make sure we get notify::caps for ghost pads.
- From: Edward Hervey <edwardrv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi: 2/13] tests/test_discoverer: make sure we get notify::caps for ghost pads.
- Date: Tue, 2 Mar 2010 11:13:08 +0000 (UTC)
commit eba8275630d82cd3978c30a387dafe6b5337e15d
Author: Alessandro Decina <alessandro d gmail com>
Date: Mon Mar 1 13:34:47 2010 +0100
tests/test_discoverer: make sure we get notify::caps for ghost pads.
tests/test_discoverer.py | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/tests/test_discoverer.py b/tests/test_discoverer.py
index 470f095..e0a4b82 100644
--- a/tests/test_discoverer.py
+++ b/tests/test_discoverer.py
@@ -315,13 +315,15 @@ class TestAnalysis(TestCase):
video = gst.Pad(video_template)
audio = gst.Pad(audio_template)
+ video_ghost = gst.GhostPad("video", video)
+ audio_ghost = gst.GhostPad("audio", audio)
self.failUnlessEqual(self.discoverer.current_streams, [])
- self.discoverer._newDecodedPadCb(None, video, False)
+ self.discoverer._newDecodedPadCb(None, video_ghost, False)
self.failUnlessEqual(len(self.discoverer.current_streams), 0)
self.failUnlessEqual(self.discoverer.new_video_pad_cb, 1)
- self.discoverer._newDecodedPadCb(None, audio, False)
+ self.discoverer._newDecodedPadCb(None, audio_ghost, False)
self.failUnlessEqual(len(self.discoverer.current_streams), 0)
self.failUnlessEqual(self.discoverer.new_video_pad_cb, 1)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]