mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-06-27 02:20:41 +00:00
19 lines
470 B
Rust
19 lines
470 B
Rust
// Take a look at the license at the top of the repository in the LICENSE file.
|
|
|
|
use crate::WebRTCDataChannel;
|
|
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(
|
|
self.to_glib_none().0,
|
|
mut_override(error.to_glib_none().0),
|
|
);
|
|
}
|
|
}
|
|
}
|