[Pkg-telepathy-commits] ./packages/unstable/farsight r58: Add payloader patch
Sjoerd Simons
sjoerd at luon.net
Fri Apr 25 18:42:30 UTC 2008
------------------------------------------------------------
revno: 58
committer: Sjoerd Simons <sjoerd at luon.net>
branch nick: farsight
timestamp: Fri 2008-04-25 20:42:30 +0200
message:
Add payloader patch
added:
patches/00_rtppayloader_caps.patch
modified:
changelog
-------------- next part --------------
=== modified file 'changelog'
--- a/changelog 2008-04-12 07:57:44 +0000
+++ b/changelog 2008-04-25 18:42:30 +0000
@@ -1,3 +1,11 @@
+farsight (0.1.27-2) UNRELEASED; urgency=low
+
+ * debian/patches/00_rtppayloader_caps.patch:
+ - Added. Set a capsfilter after the rtp payloader to ensure sending out
+ the streams with right parameters (From upstream darcs).
+
+ -- Sjoerd Simons <sjoerd at debian.org> Fri, 25 Apr 2008 20:41:10 +0200
+
farsight (0.1.27-1) unstable; urgency=low
* New upstream release
=== added file 'patches/00_rtppayloader_caps.patch'
--- a/patches/00_rtppayloader_caps.patch 1970-01-01 00:00:00 +0000
+++ b/patches/00_rtppayloader_caps.patch 2008-04-25 18:42:30 +0000
@@ -0,0 +1,31 @@
+Mon Apr 21 00:38:45 CEST 2008 Sjoerd Simons <sjoerd at luon.net>
+ * Add a capsfilter of the end of a sending codec bin to enforse the output has the right parameters
+diff -rN -u old-farsight/plugins/rtp/rtpgstcodecs.c new-farsight/plugins/rtp/rtpgstcodecs.c
+--- old-farsight/plugins/rtp/rtpgstcodecs.c 2008-04-25 20:40:00.000000000 +0200
++++ new-farsight/plugins/rtp/rtpgstcodecs.c 2008-04-25 20:40:00.000000000 +0200
+@@ -2594,6 +2594,7 @@
+ {
+ if (is_payloader (walk->data))
+ {
++ GstElement *filter;
+ g_object_set (current_element, "pt", codec_association->codec->id,
+ NULL);
+ /* TODO find a better way to set the MTU, RTCP perhaps? */
+@@ -2601,8 +2602,14 @@
+ /* FIXME please don't hardcode me */
+ g_object_set (current_element, "max_ptime", 20 * GST_MSECOND, NULL);
+
+- /* let's create our bin src ghostpad and link it to the payloader */
+- if (!create_ghost_pad (current_element, "src", codec_bin)) {
++ filter = gst_element_factory_make("capsfilter", NULL);
++ g_object_set (filter, "caps",
++ farsight_codec_to_gst_caps (codec_association->codec), NULL);
++ gst_bin_add (GST_BIN(codec_bin), filter);
++ gst_element_link (current_element, filter);
++
++ /* let's create our bin src ghostpad and link it to the filter */
++ if (!create_ghost_pad (filter, "src", codec_bin)) {
+ g_warning ("Could not create payloader src ghost pad on the codec_bin"
+ " for payload type %d", codec_id);
+ gst_object_unref (codec_bin);
+
More information about the Pkg-telepathy-commits
mailing list