gstreamer-rs/gstreamer-webrtc/src/web_rtc_data_channel.rs

19 lines
470 B
Rust
Raw Normal View History

2020-12-15 10:53:31 +00:00
// Take a look at the license at the top of the repository in the LICENSE file.
2020-06-03 13:15:47 +00:00
use crate::WebRTCDataChannel;
2020-06-03 13:15:47 +00:00
use glib::translate::*;
use std::mem;
impl WebRTCDataChannel {
pub fn on_error(&self, error: glib::Error) {
let error = mem::ManuallyDrop::new(error);
unsafe {
ffi::gst_webrtc_data_channel_on_error(
2020-06-03 13:15:47 +00:00
self.to_glib_none().0,
mut_override(error.to_glib_none().0),
);
}
}
}