mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2025-09-02 09:53:49 +00:00
play: Disable new play message APIs for now
Making use of them requires API changes like in git main of the bindings. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1632>
This commit is contained in:
parent
29b6dad9bd
commit
ecf41c0868
2 changed files with 16 additions and 70 deletions
|
@ -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"
|
||||
|
|
|
@ -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<glib::GString> {
|
||||
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<glib::GString>)> {
|
||||
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<glib::GString>)> {
|
||||
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 {
|
||||
|
|
Loading…
Reference in a new issue