summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuciana Fujii Pontello <luciana@fujii.eti.br>2010-07-15 20:57:33 (GMT)
committerLuciana Fujii Pontello <luciana@fujii.eti.br>2010-07-15 20:57:33 (GMT)
commitb42dc195b569086ba6406818b46a9ab4693c222a (patch)
tree5f7394f97287f1e42176ed34c5ba46d511917fd4
parenta614ccd22faf2b624cf8ca87703b726a06fe81d7 (diff)
downloadsltv-b42dc195b569086ba6406818b46a9ab4693c222a.tar.gz
sltv-b42dc195b569086ba6406818b46a9ab4693c222a.tar.xz
Removing extra queue from DV
-rw-r--r--sltv/input/dvinput.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/sltv/input/dvinput.py b/sltv/input/dvinput.py
index 93c56e6..e7a483d 100644
--- a/sltv/input/dvinput.py
+++ b/sltv/input/dvinput.py
@@ -41,9 +41,6 @@ class DVInput(Input):
self.decodebin = gst.element_factory_make("decodebin2", "decodebin2")
self.add(self.decodebin)
self.decodebin.connect("new-decoded-pad", self.on_pad_added)
- self.video_queue = gst.element_factory_make(
- "queue", "video_demux_queue"
- )
self.colorspc = gst.element_factory_make(
"ffmpegcolorspace", "video_dv_colorspace"
@@ -59,9 +56,8 @@ class DVInput(Input):
self.dv_src, self.capsfilter, self.tee, self.queue_src,
self.decodebin
)
-
gst.element_link_many(
- self.video_queue, self.colorspc, self.videoscale
+ self.colorspc, self.videoscale
)
self.video_pad.set_target(self.videoscale.src_pads().next())
@@ -69,7 +65,7 @@ class DVInput(Input):
name = pad.get_caps()[0].get_name()
if "video" in name:
- pad.link(self.video_queue.get_static_pad("sink"))
+ pad.link(self.colorspc.get_static_pad("sink"))
if "audio" in name:
self.audio_pad.set_target(pad)