gstreamer-rs/gstreamer-webrtc/src
François Laignel 82f6accc31 webrtc: SessionDescription: access the inner SDPMessage as & or &mut
`WebRTCSessionDescription` owns its `SDPMessage`. The `sdp()` accessor used to
return a copy of the `SDPMessage` which prevented the user from getting a ref
and by extension from getting a mutable ref for in-place modification.

This commit makes the accessor return a reference to the inner `SDPMessage` and
adds a mutable accessor.

Previous behaviour (getting an owned copy of the `SDPMessage`) is available by
calling `to_owned()` on the reference returned by `sdp()`.

Users who wish to change the type of `WebRTCSessionDescription` can call
`set_type()`.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1406>
2024-03-11 13:03:26 +01:00
..
auto Regenerate with latest GStreamer gir files 2024-02-26 11:29:19 +00:00
lib.rs Remove dox feature and replace by docsrs configuration 2023-05-04 09:19:29 +03:00
web_rtc_ice_candidate_stats.rs Update for glib::Boxed ToGlibPtr<*mut _> trait impl addition 2023-01-17 09:59:02 +02:00
web_rtc_session_description.rs webrtc: SessionDescription: access the inner SDPMessage as & or &mut 2024-03-11 13:03:26 +01:00
web_rtcice.rs Seal manual traits 2023-07-06 14:21:45 +03:00