diff --git a/gstreamer-play/Gir.toml b/gstreamer-play/Gir.toml index c19d9429f..5aa2889cc 100644 --- a/gstreamer-play/Gir.toml +++ b/gstreamer-play/Gir.toml @@ -160,6 +160,22 @@ status = "generate" final_type = true visibility = "crate" + [[object.function]] + name = "parse_error_missing_plugin" + manual = true + + [[object.function]] + name = "parse_warning_missing_plugin" + manual = true + + [[object.function]] + name = "get_uri" + manual = true + + [[object.function]] + name = "get_stream_id" + manual = true + [[object]] name = "GstPlay.PlaySignalAdapter" status = "generate" diff --git a/gstreamer-play/src/auto/enums.rs b/gstreamer-play/src/auto/enums.rs index fa39499fa..6ad6fab09 100644 --- a/gstreamer-play/src/auto/enums.rs +++ b/gstreamer-play/src/auto/enums.rs @@ -309,24 +309,6 @@ impl PlayMessage { } } - #[cfg(feature = "v1_26")] - #[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))] - #[doc(alias = "gst_play_message_get_stream_id")] - #[doc(alias = "get_stream_id")] - pub fn stream_id(msg: &gst::Message) -> Option { - assert_initialized_main_thread!(); - unsafe { from_glib_none(ffi::gst_play_message_get_stream_id(msg.to_glib_none().0)) } - } - - #[cfg(feature = "v1_26")] - #[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))] - #[doc(alias = "gst_play_message_get_uri")] - #[doc(alias = "get_uri")] - pub fn uri(msg: &gst::Message) -> glib::GString { - assert_initialized_main_thread!(); - unsafe { from_glib_none(ffi::gst_play_message_get_uri(msg.to_glib_none().0)) } - } - #[cfg(feature = "v1_26")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))] #[doc(alias = "gst_play_message_parse_buffering")] @@ -395,32 +377,6 @@ impl PlayMessage { } } - #[cfg(feature = "v1_26")] - #[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))] - #[doc(alias = "gst_play_message_parse_error_missing_plugin")] - pub fn parse_error_missing_plugin( - msg: &gst::Message, - ) -> Option<(glib::GString, Option)> { - assert_initialized_main_thread!(); - unsafe { - let mut descriptions = std::ptr::null_mut(); - let mut installer_details = std::ptr::null_mut(); - let ret = from_glib(ffi::gst_play_message_parse_error_missing_plugin( - msg.to_glib_none().0, - &mut descriptions, - &mut installer_details, - )); - if ret { - Some(( - from_glib_full(descriptions), - from_glib_full(installer_details), - )) - } else { - None - } - } - } - #[doc(alias = "gst_play_message_parse_media_info_updated")] pub fn parse_media_info_updated(msg: &gst::Message) -> PlayMediaInfo { assert_initialized_main_thread!(); @@ -533,32 +489,6 @@ impl PlayMessage { (from_glib_full(error), from_glib_full(details)) } } - - #[cfg(feature = "v1_26")] - #[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))] - #[doc(alias = "gst_play_message_parse_warning_missing_plugin")] - pub fn parse_warning_missing_plugin( - msg: &gst::Message, - ) -> Option<(glib::GString, Option)> { - assert_initialized_main_thread!(); - unsafe { - let mut descriptions = std::ptr::null_mut(); - let mut installer_details = std::ptr::null_mut(); - let ret = from_glib(ffi::gst_play_message_parse_warning_missing_plugin( - msg.to_glib_none().0, - &mut descriptions, - &mut installer_details, - )); - if ret { - Some(( - from_glib_full(descriptions), - from_glib_full(installer_details), - )) - } else { - None - } - } - } } impl std::fmt::Display for PlayMessage {