mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-25 11:01:10 +00:00
gstreamer: Don't make the bitrate query available at all with v1_16
This commit is contained in:
parent
d92e49a797
commit
bcf4f63ac6
1 changed files with 10 additions and 4 deletions
|
@ -76,6 +76,7 @@ impl QueryRef {
|
||||||
ffi::GST_QUERY_CAPS => Caps::view(self),
|
ffi::GST_QUERY_CAPS => Caps::view(self),
|
||||||
ffi::GST_QUERY_DRAIN => Drain::view(self),
|
ffi::GST_QUERY_DRAIN => Drain::view(self),
|
||||||
ffi::GST_QUERY_CONTEXT => Context::view(self),
|
ffi::GST_QUERY_CONTEXT => Context::view(self),
|
||||||
|
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||||
ffi::GST_QUERY_BITRATE => Bitrate::view(self),
|
ffi::GST_QUERY_BITRATE => Bitrate::view(self),
|
||||||
_ => Other::view(self),
|
_ => Other::view(self),
|
||||||
}
|
}
|
||||||
|
@ -103,6 +104,7 @@ impl QueryRef {
|
||||||
ffi::GST_QUERY_CAPS => Caps::view_mut(self),
|
ffi::GST_QUERY_CAPS => Caps::view_mut(self),
|
||||||
ffi::GST_QUERY_DRAIN => Drain::view_mut(self),
|
ffi::GST_QUERY_DRAIN => Drain::view_mut(self),
|
||||||
ffi::GST_QUERY_CONTEXT => Context::view_mut(self),
|
ffi::GST_QUERY_CONTEXT => Context::view_mut(self),
|
||||||
|
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||||
ffi::GST_QUERY_BITRATE => Bitrate::view_mut(self),
|
ffi::GST_QUERY_BITRATE => Bitrate::view_mut(self),
|
||||||
_ => Other::view_mut(self),
|
_ => Other::view_mut(self),
|
||||||
}
|
}
|
||||||
|
@ -148,6 +150,8 @@ pub enum QueryView<'a> {
|
||||||
Caps(&'a Caps),
|
Caps(&'a Caps),
|
||||||
Drain(&'a Drain),
|
Drain(&'a Drain),
|
||||||
Context(&'a Context),
|
Context(&'a Context),
|
||||||
|
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||||
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||||
Bitrate(&'a Bitrate),
|
Bitrate(&'a Bitrate),
|
||||||
Other(&'a Other),
|
Other(&'a Other),
|
||||||
}
|
}
|
||||||
|
@ -171,6 +175,8 @@ pub enum QueryViewMut<'a> {
|
||||||
Caps(&'a mut Caps),
|
Caps(&'a mut Caps),
|
||||||
Drain(&'a mut Drain),
|
Drain(&'a mut Drain),
|
||||||
Context(&'a mut Context),
|
Context(&'a mut Context),
|
||||||
|
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||||
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||||
Bitrate(&'a mut Bitrate),
|
Bitrate(&'a mut Bitrate),
|
||||||
Other(&'a mut Other),
|
Other(&'a mut Other),
|
||||||
}
|
}
|
||||||
|
@ -1509,6 +1515,8 @@ impl Context {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||||
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||||
declare_concrete_query!(Bitrate, T);
|
declare_concrete_query!(Bitrate, T);
|
||||||
|
|
||||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||||
|
@ -1529,9 +1537,9 @@ impl Default for Bitrate<Query> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Bitrate {
|
|
||||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||||
|
impl Bitrate {
|
||||||
#[doc(alias = "get_bitrate")]
|
#[doc(alias = "get_bitrate")]
|
||||||
#[doc(alias = "gst_query_parse_bitrate")]
|
#[doc(alias = "gst_query_parse_bitrate")]
|
||||||
pub fn bitrate(&self) -> u32 {
|
pub fn bitrate(&self) -> u32 {
|
||||||
|
@ -1542,8 +1550,6 @@ impl Bitrate {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
|
||||||
#[doc(alias = "gst_query_set_bitrate")]
|
#[doc(alias = "gst_query_set_bitrate")]
|
||||||
pub fn set_bitrate(&mut self, bitrate: u32) {
|
pub fn set_bitrate(&mut self, bitrate: u32) {
|
||||||
unsafe {
|
unsafe {
|
||||||
|
|
Loading…
Reference in a new issue