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:
Sebastian Dröge 2018-06-06 00:31:05 +03:00
parent ba4b4a03f0
commit 85ca3b94a3

View file

@ -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) }
}
} }