webrtc: Fix manual data channel code

The corresponding API shouldn't have been public and is not public
anymore with 1.20.
This commit is contained in:
Sebastian Dröge 2021-06-28 18:09:19 +03:00
parent 72da9ea826
commit 223a12597c
2 changed files with 0 additions and 16 deletions

View file

@ -26,9 +26,6 @@ macro_rules! skip_assert_initialized {
mod auto;
pub use crate::auto::*;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
mod web_rtc_data_channel;
mod web_rtc_session_description;
// Re-export all the traits in a prelude module, so that applications

View file

@ -1,13 +0,0 @@
// Take a look at the license at the top of the repository in the LICENSE file.
use crate::WebRTCDataChannel;
use glib::translate::*;
impl WebRTCDataChannel {
#[doc(alias = "gst_webrtc_data_channel_on_error")]
pub fn on_error(&self, error: glib::Error) {
unsafe {
ffi::gst_webrtc_data_channel_on_error(self.to_glib_none().0, error.into_raw());
}
}
}