[telepathy-python/master] Add various converters before the sinks
Olivier Crête
olivier.crete at collabora.co.uk
Mon May 4 04:08:07 PDT 2009
---
examples/call.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/examples/call.py b/examples/call.py
index e586129..e78df0c 100644
--- a/examples/call.py
+++ b/examples/call.py
@@ -95,9 +95,9 @@ class Call:
def src_pad_added (self, stream, pad, codec):
type = stream.get_property ("media-type")
if type == farsight.MEDIA_TYPE_AUDIO:
- sink = gst.element_factory_make ("autoaudiosink")
+ sink = gst.parse_bin_from_description("audioconvert ! audioresample ! audioconvert ! autoaudiosink", True)
elif type == farsight.MEDIA_TYPE_VIDEO:
- sink = gst.element_factory_make ("autovideosink")
+ sink = gst.parse_bin_from_description("ffmpegcolorspace ! videoscale ! autovideosink", True)
self.pipeline.add(sink)
pad.link(sink.get_pad("sink"))
--
1.5.6.5
More information about the telepathy-commits
mailing list