mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-29 21:11:14 +00:00
Add accessors for the type/sdp fields of the WebRTCSessionDescription
See https://github.com/sdroege/gstreamer-rs/issues/108#issuecomment-393505826
This commit is contained in:
parent
ba4b4a03f0
commit
85ca3b94a3
1 changed files with 8 additions and 0 deletions
|
@ -25,4 +25,12 @@ impl WebRTCSessionDescription {
|
||||||
desc
|
desc
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn get_type(&self) -> ::WebRTCSDPType {
|
||||||
|
unsafe { from_glib((*self.to_glib_none().0).type_) }
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn get_sdp(&self) -> gst_sdp::SDPMessage {
|
||||||
|
unsafe { from_glib_none((*self.to_glib_none().0).sdp) }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue