rtpg722pay: Add encoding-params to the src caps template
authorYouness Alaoui <kakaroto@kakaroto.homelinux.net>
Fri, 3 Nov 2017 17:27:50 +0000 (13:27 -0400)
committerOlivier CrĂȘte <olivier.crete@collabora.com>
Fri, 3 Nov 2017 21:20:31 +0000 (17:20 -0400)
commit593615de46a98165ff34e74bb2559eeecec61fec
tree673d16bf2d14e55d93adf1268f9efa3b34c49a20
parent57d7ae8496c2cfef78303635dcafc008caf2b424
rtpg722pay: Add encoding-params to the src caps template

The G722 payload only accepts G722 audio with channels=1, so it must
specify the encoding-params=1 in its src caps, otherwise it causes issues
with farstream which thinks it supports 2 channels G722 and when
confronted with a remote that has G722/8000/2, it will negotiate it
and error out with a not-negotiated when the caps don't intersect
at runtime.

https://bugzilla.gnome.org/show_bug.cgi?id=789878
gst/rtp/gstrtpg722pay.c