Skip to content
Snippets Groups Projects

webrtc: SessionDescription: access the inner SDPMessage as & or &mut

Merged François Laignel requested to merge fengalin/gstreamer-rs:webrtc-sdp-ownership into main

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().

Edited by François Laignel

Merge request reports

Merge request pipeline #1124743 passed with warnings

Merge request pipeline passed with warnings for 82f6accc

Merged by GStreamer Marge BotGStreamer Marge Bot 1 year ago (Mar 11, 2024 12:52pm UTC)

Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading