gstsdp

package
v1.3.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2024 License: LGPL-2.1 Imports: 4 Imported by: 0

Documentation

Overview

gstsdp contains bindings for the gstreamer sdp library. See also https://gstreamer.freedesktop.org/documentation/sdp/index.html

Index

Constants

This section is empty.

Variables

View Source
var ErrSDPInvalid = errors.New("invalid SDP")

Functions

This section is empty.

Types

type Message

type Message struct {
	// contains filtered or unexported fields
}

func NewMessageFromUnsafe

func NewMessageFromUnsafe(ptr unsafe.Pointer) *Message

NewMessageFromUnsafe creates a new SDP message from a pointer and does not finalize it

func ParseSDPMessage

func ParseSDPMessage(sdp string) (*Message, error)

func (*Message) Free

func (msg *Message) Free()

Free frees the SDP message.

This is called automatically when the object is garbage collected.

func (*Message) Instance

func (msg *Message) Instance() unsafe.Pointer

func (*Message) String

func (msg *Message) String() string

func (*Message) UnownedCopy

func (msg *Message) UnownedCopy() *Message

UnownedCopy creates a new copy of the SDP message that will not be finalized

this is needed to pass the message back to C where C takes ownership of the message

the returned SDP message will leak memory if not freed manually

type SDPResult

type SDPResult C.GstSDPResult
const (
	SDPResultOk SDPResult = C.GST_SDP_OK
	SDPEinval   SDPResult = C.GST_SDP_EINVAL
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL