mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
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
This commit is contained in:
parent
57d7ae8496
commit
593615de46
1 changed files with 2 additions and 0 deletions
|
@ -47,11 +47,13 @@ static GstStaticPadTemplate gst_rtp_g722_pay_src_template =
|
|||
"media = (string) \"audio\", "
|
||||
"encoding-name = (string) \"G722\", "
|
||||
"payload = (int) " GST_RTP_PAYLOAD_G722_STRING ", "
|
||||
"encoding-params = (string) 1, "
|
||||
"clock-rate = (int) 8000; "
|
||||
"application/x-rtp, "
|
||||
"media = (string) \"audio\", "
|
||||
"encoding-name = (string) \"G722\", "
|
||||
"payload = (int) " GST_RTP_PAYLOAD_DYNAMIC_STRING ", "
|
||||
"encoding-params = (string) 1, "
|
||||
"clock-rate = (int) 8000")
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue