mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
rtpvp8pay: make caps writable before truncating them
https://bugzilla.gnome.org/show_bug.cgi?id=737810
This commit is contained in:
parent
b866c989f5
commit
b88ea286d2
1 changed files with 1 additions and 1 deletions
|
@ -515,8 +515,8 @@ gst_rtp_vp8_pay_set_caps (GstRTPBasePayload * payload, GstCaps * caps)
|
|||
|
||||
src_caps = gst_pad_get_allowed_caps (GST_RTP_BASE_PAYLOAD_SRCPAD (payload));
|
||||
if (src_caps) {
|
||||
src_caps = gst_caps_truncate (src_caps);
|
||||
src_caps = gst_caps_make_writable (src_caps);
|
||||
src_caps = gst_caps_truncate (src_caps);
|
||||
s = gst_caps_get_structure (src_caps, 0);
|
||||
gst_structure_fixate_field_string (s, "encoding-name", "VP8-DRAFT-IETF-01");
|
||||
encoding_name = g_strdup (gst_structure_get_string (s, "encoding-name"));
|
||||
|
|
Loading…
Reference in a new issue