Commit 85ca3b94 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

Add accessors for the type/sdp fields of the WebRTCSessionDescription

See https://github.com/sdroege/gstreamer-rs/issues/108#issuecomment-393505826
parent ba4b4a03
......@@ -25,4 +25,12 @@ impl WebRTCSessionDescription {
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) }
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment