This commit is contained in:
RSWilli
2024-11-05 11:19:53 +01:00
parent 82510a77e5
commit f3737a9a08

View File

@@ -123,7 +123,7 @@ func marshalSessionDescription(p unsafe.Pointer) (interface{}, error) {
return ref.Copy(), nil return ref.Copy(), nil
} }
// Copy creates a new copy of the SessionDescription // SDP returns the sdp message from the SessionDescription object
func (sd *SessionDescription) SDP() *gstsdp.Message { func (sd *SessionDescription) SDP() *gstsdp.Message {
sdp := gstsdp.NewMessageFromUnsafe(unsafe.Pointer(sd.ptr.sdp)) sdp := gstsdp.NewMessageFromUnsafe(unsafe.Pointer(sd.ptr.sdp))