Skip to content

Change GstSdp.sdp_message_parse_buffer to GstSdp.SDPMessage.new_from_text in examples

Seungmin Kim requested to merge (removed):main into main

Relevant to #1605 (closed),

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

The above are not needed since GST 1.16, replaced by res, msg = GstSdp.SDPMessage.new_from_text(text).

As there has recently been issues with the above command since !3194 (merged), this MR replaces the example scripts to a more recent, stable example of GstSdp.SDPMessage.new_from_text to make the examples work more reliably.

Edited by Seungmin Kim

Merge request reports