mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 17:50:36 +00:00
opuspay: remove pointless caps serialization
Remove the caps serialization in the rtp caps. the spec nor the receiver does anything with it. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=686547
This commit is contained in:
parent
17742d2347
commit
5d893c7ea2
1 changed files with 1 additions and 7 deletions
|
@ -94,16 +94,10 @@ static gboolean
|
||||||
gst_rtp_opus_pay_setcaps (GstRTPBasePayload * payload, GstCaps * caps)
|
gst_rtp_opus_pay_setcaps (GstRTPBasePayload * payload, GstCaps * caps)
|
||||||
{
|
{
|
||||||
gboolean res;
|
gboolean res;
|
||||||
gchar *capsstr;
|
|
||||||
|
|
||||||
capsstr = gst_caps_to_string (caps);
|
|
||||||
|
|
||||||
gst_rtp_base_payload_set_options (payload, "audio", FALSE,
|
gst_rtp_base_payload_set_options (payload, "audio", FALSE,
|
||||||
"X-GST-OPUS-DRAFT-SPITTKA-00", 48000);
|
"X-GST-OPUS-DRAFT-SPITTKA-00", 48000);
|
||||||
res =
|
res = gst_rtp_base_payload_set_outcaps (payload, NULL);
|
||||||
gst_rtp_base_payload_set_outcaps (payload, "caps", G_TYPE_STRING, capsstr,
|
|
||||||
NULL);
|
|
||||||
g_free (capsstr);
|
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue