sdp: Add new constructor, sdp_message_from_text
authorMathieu Duponchelle <mathieu@centricular.com>
Mon, 11 Jun 2018 16:32:28 +0000 (18:32 +0200)
committerMathieu Duponchelle <mathieu@centricular.com>
Mon, 11 Jun 2018 18:21:08 +0000 (20:21 +0200)
commita4a27fdca82d7e1e2ade89bc78734e3e6fd61943
tree3fcf5432cd9ab84793c65b24c672c37e0a30ba42
parent46831823818f7993c34e26dee5b747790fec53c6
sdp: Add new constructor, sdp_message_from_text

Helper function for bindings, in python for example
users can now replace:

res, msg = GstSdp.SDPMessage.new()
GstSdp.sdp_message_parse_buffer(bytes(text.encode()), msg)

with:

res, msg = GstSdp.SDPMessage.new_from_text(text)

https://bugzilla.gnome.org/show_bug.cgi?id=796563
docs/libs/gst-plugins-base-libs-sections.txt
gst-libs/gst/sdp/gstsdpmessage.c
gst-libs/gst/sdp/gstsdpmessage.h