Regenerate with properties annotations supports

Removes some duplicated getters/setters

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1452>
This commit is contained in:
Bilal Elmoussaoui 2024-06-02 17:20:42 +03:00 committed by GStreamer Marge Bot
parent 8a3ea1192d
commit e6ed67cbc5
99 changed files with 370 additions and 66 deletions

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 6a8847ce15a5)
Generated by gir (https://github.com/gtk-rs/gir @ 5f72cf0d9b99)
from gir-files (https://github.com/gtk-rs/gir-files @ 6cd7b656acd6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ c988e03b5e99)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 6a8847ce15a5)
Generated by gir (https://github.com/gtk-rs/gir @ 5f72cf0d9b99)
from gir-files (https://github.com/gtk-rs/gir-files @ 6cd7b656acd6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ c988e03b5e99)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 6a8847ce15a5)
Generated by gir (https://github.com/gtk-rs/gir @ 5f72cf0d9b99)
from gir-files (https://github.com/gtk-rs/gir-files @ 6cd7b656acd6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ c988e03b5e99)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 6a8847ce15a5)
Generated by gir (https://github.com/gtk-rs/gir @ 5f72cf0d9b99)
from gir-files (https://github.com/gtk-rs/gir-files @ 6cd7b656acd6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ c988e03b5e99)

View file

@ -39,12 +39,14 @@ impl AppSink {
#[doc(alias = "gst_app_sink_get_drop")]
#[doc(alias = "get_drop")]
#[doc(alias = "drop")]
pub fn is_drop(&self) -> bool {
unsafe { from_glib(ffi::gst_app_sink_get_drop(self.to_glib_none().0)) }
}
#[doc(alias = "gst_app_sink_get_max_buffers")]
#[doc(alias = "get_max_buffers")]
#[doc(alias = "max-buffers")]
pub fn max_buffers(&self) -> u32 {
unsafe { ffi::gst_app_sink_get_max_buffers(self.to_glib_none().0) }
}
@ -53,6 +55,7 @@ impl AppSink {
#[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
#[doc(alias = "gst_app_sink_get_max_bytes")]
#[doc(alias = "get_max_bytes")]
#[doc(alias = "max-bytes")]
pub fn max_bytes(&self) -> u64 {
unsafe { ffi::gst_app_sink_get_max_bytes(self.to_glib_none().0) }
}
@ -61,12 +64,14 @@ impl AppSink {
#[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
#[doc(alias = "gst_app_sink_get_max_time")]
#[doc(alias = "get_max_time")]
#[doc(alias = "max-time")]
pub fn max_time(&self) -> Option<gst::ClockTime> {
unsafe { from_glib(ffi::gst_app_sink_get_max_time(self.to_glib_none().0)) }
}
#[doc(alias = "gst_app_sink_get_wait_on_eos")]
#[doc(alias = "get_wait_on_eos")]
#[doc(alias = "wait-on-eos")]
pub fn is_wait_on_eos(&self) -> bool {
unsafe { from_glib(ffi::gst_app_sink_get_wait_on_eos(self.to_glib_none().0)) }
}
@ -118,6 +123,7 @@ impl AppSink {
//}
#[doc(alias = "gst_app_sink_set_caps")]
#[doc(alias = "caps")]
pub fn set_caps(&self, caps: Option<&gst::Caps>) {
unsafe {
ffi::gst_app_sink_set_caps(self.to_glib_none().0, caps.to_glib_none().0);
@ -125,6 +131,7 @@ impl AppSink {
}
#[doc(alias = "gst_app_sink_set_drop")]
#[doc(alias = "drop")]
pub fn set_drop(&self, drop: bool) {
unsafe {
ffi::gst_app_sink_set_drop(self.to_glib_none().0, drop.into_glib());
@ -132,6 +139,7 @@ impl AppSink {
}
#[doc(alias = "gst_app_sink_set_max_buffers")]
#[doc(alias = "max-buffers")]
pub fn set_max_buffers(&self, max: u32) {
unsafe {
ffi::gst_app_sink_set_max_buffers(self.to_glib_none().0, max);
@ -141,6 +149,7 @@ impl AppSink {
#[cfg(feature = "v1_24")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
#[doc(alias = "gst_app_sink_set_max_bytes")]
#[doc(alias = "max-bytes")]
pub fn set_max_bytes(&self, max: u64) {
unsafe {
ffi::gst_app_sink_set_max_bytes(self.to_glib_none().0, max);
@ -150,6 +159,7 @@ impl AppSink {
#[cfg(feature = "v1_24")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
#[doc(alias = "gst_app_sink_set_max_time")]
#[doc(alias = "max-time")]
pub fn set_max_time(&self, max: impl Into<Option<gst::ClockTime>>) {
unsafe {
ffi::gst_app_sink_set_max_time(self.to_glib_none().0, max.into().into_glib());
@ -157,6 +167,7 @@ impl AppSink {
}
#[doc(alias = "gst_app_sink_set_wait_on_eos")]
#[doc(alias = "wait-on-eos")]
pub fn set_wait_on_eos(&self, wait: bool) {
unsafe {
ffi::gst_app_sink_set_wait_on_eos(self.to_glib_none().0, wait.into_glib());

View file

@ -39,12 +39,14 @@ impl AppSrc {
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
#[doc(alias = "gst_app_src_get_current_level_buffers")]
#[doc(alias = "get_current_level_buffers")]
#[doc(alias = "current-level-buffers")]
pub fn current_level_buffers(&self) -> u64 {
unsafe { ffi::gst_app_src_get_current_level_buffers(self.to_glib_none().0) }
}
#[doc(alias = "gst_app_src_get_current_level_bytes")]
#[doc(alias = "get_current_level_bytes")]
#[doc(alias = "current-level-bytes")]
pub fn current_level_bytes(&self) -> u64 {
unsafe { ffi::gst_app_src_get_current_level_bytes(self.to_glib_none().0) }
}
@ -53,6 +55,7 @@ impl AppSrc {
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
#[doc(alias = "gst_app_src_get_current_level_time")]
#[doc(alias = "get_current_level_time")]
#[doc(alias = "current-level-time")]
pub fn current_level_time(&self) -> Option<gst::ClockTime> {
unsafe {
from_glib(ffi::gst_app_src_get_current_level_time(
@ -71,6 +74,7 @@ impl AppSrc {
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
#[doc(alias = "gst_app_src_get_leaky_type")]
#[doc(alias = "get_leaky_type")]
#[doc(alias = "leaky-type")]
pub fn leaky_type(&self) -> AppLeakyType {
unsafe { from_glib(ffi::gst_app_src_get_leaky_type(self.to_glib_none().0)) }
}
@ -79,12 +83,14 @@ impl AppSrc {
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
#[doc(alias = "gst_app_src_get_max_buffers")]
#[doc(alias = "get_max_buffers")]
#[doc(alias = "max-buffers")]
pub fn max_buffers(&self) -> u64 {
unsafe { ffi::gst_app_src_get_max_buffers(self.to_glib_none().0) }
}
#[doc(alias = "gst_app_src_get_max_bytes")]
#[doc(alias = "get_max_bytes")]
#[doc(alias = "max-bytes")]
pub fn max_bytes(&self) -> u64 {
unsafe { ffi::gst_app_src_get_max_bytes(self.to_glib_none().0) }
}
@ -93,6 +99,7 @@ impl AppSrc {
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
#[doc(alias = "gst_app_src_get_max_time")]
#[doc(alias = "get_max_time")]
#[doc(alias = "max-time")]
pub fn max_time(&self) -> Option<gst::ClockTime> {
unsafe { from_glib(ffi::gst_app_src_get_max_time(self.to_glib_none().0)) }
}
@ -105,6 +112,7 @@ impl AppSrc {
#[doc(alias = "gst_app_src_get_stream_type")]
#[doc(alias = "get_stream_type")]
#[doc(alias = "stream-type")]
pub fn stream_type(&self) -> AppStreamType {
unsafe { from_glib(ffi::gst_app_src_get_stream_type(self.to_glib_none().0)) }
}
@ -148,6 +156,7 @@ impl AppSrc {
//}
#[doc(alias = "gst_app_src_set_caps")]
#[doc(alias = "caps")]
pub fn set_caps(&self, caps: Option<&gst::Caps>) {
unsafe {
ffi::gst_app_src_set_caps(self.to_glib_none().0, caps.to_glib_none().0);
@ -155,6 +164,7 @@ impl AppSrc {
}
#[doc(alias = "gst_app_src_set_duration")]
#[doc(alias = "duration")]
pub fn set_duration(&self, duration: impl Into<Option<gst::ClockTime>>) {
unsafe {
ffi::gst_app_src_set_duration(self.to_glib_none().0, duration.into().into_glib());
@ -164,6 +174,7 @@ impl AppSrc {
#[cfg(feature = "v1_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
#[doc(alias = "gst_app_src_set_leaky_type")]
#[doc(alias = "leaky-type")]
pub fn set_leaky_type(&self, leaky: AppLeakyType) {
unsafe {
ffi::gst_app_src_set_leaky_type(self.to_glib_none().0, leaky.into_glib());
@ -173,6 +184,7 @@ impl AppSrc {
#[cfg(feature = "v1_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
#[doc(alias = "gst_app_src_set_max_buffers")]
#[doc(alias = "max-buffers")]
pub fn set_max_buffers(&self, max: u64) {
unsafe {
ffi::gst_app_src_set_max_buffers(self.to_glib_none().0, max);
@ -180,6 +192,7 @@ impl AppSrc {
}
#[doc(alias = "gst_app_src_set_max_bytes")]
#[doc(alias = "max-bytes")]
pub fn set_max_bytes(&self, max: u64) {
unsafe {
ffi::gst_app_src_set_max_bytes(self.to_glib_none().0, max);
@ -189,6 +202,7 @@ impl AppSrc {
#[cfg(feature = "v1_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
#[doc(alias = "gst_app_src_set_max_time")]
#[doc(alias = "max-time")]
pub fn set_max_time(&self, max: impl Into<Option<gst::ClockTime>>) {
unsafe {
ffi::gst_app_src_set_max_time(self.to_glib_none().0, max.into().into_glib());
@ -196,6 +210,7 @@ impl AppSrc {
}
#[doc(alias = "gst_app_src_set_size")]
#[doc(alias = "size")]
pub fn set_size(&self, size: i64) {
unsafe {
ffi::gst_app_src_set_size(self.to_glib_none().0, size);
@ -203,6 +218,7 @@ impl AppSrc {
}
#[doc(alias = "gst_app_src_set_stream_type")]
#[doc(alias = "stream-type")]
pub fn set_stream_type(&self, type_: AppStreamType) {
unsafe {
ffi::gst_app_src_set_stream_type(self.to_glib_none().0, type_.into_glib());

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 6a8847ce15a5)
Generated by gir (https://github.com/gtk-rs/gir @ 5f72cf0d9b99)
from gir-files (https://github.com/gtk-rs/gir-files @ 6cd7b656acd6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ c988e03b5e99)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 6a8847ce15a5)
Generated by gir (https://github.com/gtk-rs/gir @ 5f72cf0d9b99)
from gir-files (https://github.com/gtk-rs/gir-files @ 6cd7b656acd6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ c988e03b5e99)

View file

@ -40,6 +40,7 @@ pub trait AudioBaseSinkExt: IsA<AudioBaseSink> + sealed::Sealed + 'static {
#[doc(alias = "gst_audio_base_sink_get_alignment_threshold")]
#[doc(alias = "get_alignment_threshold")]
#[doc(alias = "alignment-threshold")]
fn alignment_threshold(&self) -> gst::ClockTime {
unsafe {
try_from_glib(ffi::gst_audio_base_sink_get_alignment_threshold(
@ -51,6 +52,7 @@ pub trait AudioBaseSinkExt: IsA<AudioBaseSink> + sealed::Sealed + 'static {
#[doc(alias = "gst_audio_base_sink_get_discont_wait")]
#[doc(alias = "get_discont_wait")]
#[doc(alias = "discont-wait")]
fn discont_wait(&self) -> gst::ClockTime {
unsafe {
try_from_glib(ffi::gst_audio_base_sink_get_discont_wait(
@ -62,12 +64,14 @@ pub trait AudioBaseSinkExt: IsA<AudioBaseSink> + sealed::Sealed + 'static {
#[doc(alias = "gst_audio_base_sink_get_drift_tolerance")]
#[doc(alias = "get_drift_tolerance")]
#[doc(alias = "drift-tolerance")]
fn drift_tolerance(&self) -> i64 {
unsafe { ffi::gst_audio_base_sink_get_drift_tolerance(self.as_ref().to_glib_none().0) }
}
#[doc(alias = "gst_audio_base_sink_get_provide_clock")]
#[doc(alias = "get_provide_clock")]
#[doc(alias = "provide-clock")]
fn is_provide_clock(&self) -> bool {
unsafe {
from_glib(ffi::gst_audio_base_sink_get_provide_clock(
@ -78,6 +82,7 @@ pub trait AudioBaseSinkExt: IsA<AudioBaseSink> + sealed::Sealed + 'static {
//#[doc(alias = "gst_audio_base_sink_get_slave_method")]
//#[doc(alias = "get_slave_method")]
//#[doc(alias = "slave-method")]
//fn slave_method(&self) -> /*Ignored*/AudioBaseSinkSlaveMethod {
// unsafe { TODO: call ffi:gst_audio_base_sink_get_slave_method() }
//}
@ -90,6 +95,7 @@ pub trait AudioBaseSinkExt: IsA<AudioBaseSink> + sealed::Sealed + 'static {
}
#[doc(alias = "gst_audio_base_sink_set_alignment_threshold")]
#[doc(alias = "alignment-threshold")]
fn set_alignment_threshold(&self, alignment_threshold: gst::ClockTime) {
unsafe {
ffi::gst_audio_base_sink_set_alignment_threshold(
@ -105,6 +111,7 @@ pub trait AudioBaseSinkExt: IsA<AudioBaseSink> + sealed::Sealed + 'static {
//}
#[doc(alias = "gst_audio_base_sink_set_discont_wait")]
#[doc(alias = "discont-wait")]
fn set_discont_wait(&self, discont_wait: gst::ClockTime) {
unsafe {
ffi::gst_audio_base_sink_set_discont_wait(
@ -115,6 +122,7 @@ pub trait AudioBaseSinkExt: IsA<AudioBaseSink> + sealed::Sealed + 'static {
}
#[doc(alias = "gst_audio_base_sink_set_drift_tolerance")]
#[doc(alias = "drift-tolerance")]
fn set_drift_tolerance(&self, drift_tolerance: i64) {
unsafe {
ffi::gst_audio_base_sink_set_drift_tolerance(
@ -125,6 +133,7 @@ pub trait AudioBaseSinkExt: IsA<AudioBaseSink> + sealed::Sealed + 'static {
}
#[doc(alias = "gst_audio_base_sink_set_provide_clock")]
#[doc(alias = "provide-clock")]
fn set_provide_clock(&self, provide: bool) {
unsafe {
ffi::gst_audio_base_sink_set_provide_clock(
@ -135,6 +144,7 @@ pub trait AudioBaseSinkExt: IsA<AudioBaseSink> + sealed::Sealed + 'static {
}
//#[doc(alias = "gst_audio_base_sink_set_slave_method")]
//#[doc(alias = "slave-method")]
//fn set_slave_method(&self, method: /*Ignored*/AudioBaseSinkSlaveMethod) {
// unsafe { TODO: call ffi:gst_audio_base_sink_set_slave_method() }
//}

View file

@ -40,6 +40,7 @@ pub trait AudioBaseSrcExt: IsA<AudioBaseSrc> + sealed::Sealed + 'static {
#[doc(alias = "gst_audio_base_src_get_provide_clock")]
#[doc(alias = "get_provide_clock")]
#[doc(alias = "provide-clock")]
fn is_provide_clock(&self) -> bool {
unsafe {
from_glib(ffi::gst_audio_base_src_get_provide_clock(
@ -50,11 +51,13 @@ pub trait AudioBaseSrcExt: IsA<AudioBaseSrc> + sealed::Sealed + 'static {
//#[doc(alias = "gst_audio_base_src_get_slave_method")]
//#[doc(alias = "get_slave_method")]
//#[doc(alias = "slave-method")]
//fn slave_method(&self) -> /*Ignored*/AudioBaseSrcSlaveMethod {
// unsafe { TODO: call ffi:gst_audio_base_src_get_slave_method() }
//}
#[doc(alias = "gst_audio_base_src_set_provide_clock")]
#[doc(alias = "provide-clock")]
fn set_provide_clock(&self, provide: bool) {
unsafe {
ffi::gst_audio_base_src_set_provide_clock(
@ -65,6 +68,7 @@ pub trait AudioBaseSrcExt: IsA<AudioBaseSrc> + sealed::Sealed + 'static {
}
//#[doc(alias = "gst_audio_base_src_set_slave_method")]
//#[doc(alias = "slave-method")]
//fn set_slave_method(&self, method: /*Ignored*/AudioBaseSrcSlaveMethod) {
// unsafe { TODO: call ffi:gst_audio_base_src_set_slave_method() }
//}

View file

@ -125,12 +125,14 @@ pub trait AudioDecoderExt: IsA<AudioDecoder> + sealed::Sealed + 'static {
#[doc(alias = "gst_audio_decoder_get_max_errors")]
#[doc(alias = "get_max_errors")]
#[doc(alias = "max-errors")]
fn max_errors(&self) -> i32 {
unsafe { ffi::gst_audio_decoder_get_max_errors(self.as_ref().to_glib_none().0) }
}
#[doc(alias = "gst_audio_decoder_get_min_latency")]
#[doc(alias = "get_min_latency")]
#[doc(alias = "min-latency")]
fn min_latency(&self) -> gst::ClockTime {
unsafe {
try_from_glib(ffi::gst_audio_decoder_get_min_latency(
@ -167,6 +169,7 @@ pub trait AudioDecoderExt: IsA<AudioDecoder> + sealed::Sealed + 'static {
#[doc(alias = "gst_audio_decoder_get_plc")]
#[doc(alias = "get_plc")]
#[doc(alias = "plc")]
fn is_plc(&self) -> bool {
unsafe {
from_glib(ffi::gst_audio_decoder_get_plc(
@ -256,6 +259,7 @@ pub trait AudioDecoderExt: IsA<AudioDecoder> + sealed::Sealed + 'static {
}
#[doc(alias = "gst_audio_decoder_set_max_errors")]
#[doc(alias = "max-errors")]
fn set_max_errors(&self, num: i32) {
unsafe {
ffi::gst_audio_decoder_set_max_errors(self.as_ref().to_glib_none().0, num);
@ -263,6 +267,7 @@ pub trait AudioDecoderExt: IsA<AudioDecoder> + sealed::Sealed + 'static {
}
#[doc(alias = "gst_audio_decoder_set_min_latency")]
#[doc(alias = "min-latency")]
fn set_min_latency(&self, num: gst::ClockTime) {
unsafe {
ffi::gst_audio_decoder_set_min_latency(self.as_ref().to_glib_none().0, num.into_glib());
@ -280,6 +285,7 @@ pub trait AudioDecoderExt: IsA<AudioDecoder> + sealed::Sealed + 'static {
}
#[doc(alias = "gst_audio_decoder_set_plc")]
#[doc(alias = "plc")]
fn set_plc(&self, enabled: bool) {
unsafe {
ffi::gst_audio_decoder_set_plc(self.as_ref().to_glib_none().0, enabled.into_glib());
@ -294,6 +300,7 @@ pub trait AudioDecoderExt: IsA<AudioDecoder> + sealed::Sealed + 'static {
}
#[doc(alias = "gst_audio_decoder_set_tolerance")]
#[doc(alias = "tolerance")]
fn set_tolerance(&self, tolerance: gst::ClockTime) {
unsafe {
ffi::gst_audio_decoder_set_tolerance(

View file

@ -108,6 +108,7 @@ pub trait AudioEncoderExt: IsA<AudioEncoder> + sealed::Sealed + 'static {
#[doc(alias = "gst_audio_encoder_get_hard_resync")]
#[doc(alias = "get_hard_resync")]
#[doc(alias = "hard-resync")]
fn is_hard_resync(&self) -> bool {
unsafe {
from_glib(ffi::gst_audio_encoder_get_hard_resync(
@ -142,6 +143,7 @@ pub trait AudioEncoderExt: IsA<AudioEncoder> + sealed::Sealed + 'static {
#[doc(alias = "gst_audio_encoder_get_mark_granule")]
#[doc(alias = "get_mark_granule")]
#[doc(alias = "mark-granule")]
fn is_mark_granule(&self) -> bool {
unsafe {
from_glib(ffi::gst_audio_encoder_get_mark_granule(
@ -152,6 +154,7 @@ pub trait AudioEncoderExt: IsA<AudioEncoder> + sealed::Sealed + 'static {
#[doc(alias = "gst_audio_encoder_get_perfect_timestamp")]
#[doc(alias = "get_perfect_timestamp")]
#[doc(alias = "perfect-timestamp")]
fn is_perfect_timestamp(&self) -> bool {
unsafe {
from_glib(ffi::gst_audio_encoder_get_perfect_timestamp(
@ -245,6 +248,7 @@ pub trait AudioEncoderExt: IsA<AudioEncoder> + sealed::Sealed + 'static {
}
#[doc(alias = "gst_audio_encoder_set_hard_resync")]
#[doc(alias = "hard-resync")]
fn set_hard_resync(&self, enabled: bool) {
unsafe {
ffi::gst_audio_encoder_set_hard_resync(
@ -283,6 +287,7 @@ pub trait AudioEncoderExt: IsA<AudioEncoder> + sealed::Sealed + 'static {
}
#[doc(alias = "gst_audio_encoder_set_perfect_timestamp")]
#[doc(alias = "perfect-timestamp")]
fn set_perfect_timestamp(&self, enabled: bool) {
unsafe {
ffi::gst_audio_encoder_set_perfect_timestamp(
@ -293,6 +298,7 @@ pub trait AudioEncoderExt: IsA<AudioEncoder> + sealed::Sealed + 'static {
}
#[doc(alias = "gst_audio_encoder_set_tolerance")]
#[doc(alias = "tolerance")]
fn set_tolerance(&self, tolerance: gst::ClockTime) {
unsafe {
ffi::gst_audio_encoder_set_tolerance(

View file

@ -41,6 +41,7 @@ mod sealed {
pub trait StreamVolumeExt: IsA<StreamVolume> + sealed::Sealed + 'static {
#[doc(alias = "gst_stream_volume_get_mute")]
#[doc(alias = "get_mute")]
#[doc(alias = "mute")]
fn is_muted(&self) -> bool {
unsafe {
from_glib(ffi::gst_stream_volume_get_mute(
@ -58,6 +59,7 @@ pub trait StreamVolumeExt: IsA<StreamVolume> + sealed::Sealed + 'static {
}
#[doc(alias = "gst_stream_volume_set_mute")]
#[doc(alias = "mute")]
fn set_mute(&self, mute: bool) {
unsafe {
ffi::gst_stream_volume_set_mute(self.as_ref().to_glib_none().0, mute.into_glib());
@ -65,6 +67,7 @@ pub trait StreamVolumeExt: IsA<StreamVolume> + sealed::Sealed + 'static {
}
#[doc(alias = "gst_stream_volume_set_volume")]
#[doc(alias = "volume")]
fn set_volume(&self, format: StreamVolumeFormat, val: f64) {
unsafe {
ffi::gst_stream_volume_set_volume(

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 6a8847ce15a5)
Generated by gir (https://github.com/gtk-rs/gir @ 5f72cf0d9b99)
from gir-files (https://github.com/gtk-rs/gir-files @ 6cd7b656acd6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ c988e03b5e99)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 6a8847ce15a5)
Generated by gir (https://github.com/gtk-rs/gir @ 5f72cf0d9b99)
from gir-files (https://github.com/gtk-rs/gir-files @ 6cd7b656acd6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ c988e03b5e99)

View file

@ -126,6 +126,20 @@ pub const GST_AUDIO_FORMAT_F32LE: GstAudioFormat = 28;
pub const GST_AUDIO_FORMAT_F32BE: GstAudioFormat = 29;
pub const GST_AUDIO_FORMAT_F64LE: GstAudioFormat = 30;
pub const GST_AUDIO_FORMAT_F64BE: GstAudioFormat = 31;
pub const GST_AUDIO_FORMAT_S16: GstAudioFormat = 4;
pub const GST_AUDIO_FORMAT_U16: GstAudioFormat = 6;
pub const GST_AUDIO_FORMAT_S24_32: GstAudioFormat = 8;
pub const GST_AUDIO_FORMAT_U24_32: GstAudioFormat = 10;
pub const GST_AUDIO_FORMAT_S32: GstAudioFormat = 12;
pub const GST_AUDIO_FORMAT_U32: GstAudioFormat = 14;
pub const GST_AUDIO_FORMAT_S24: GstAudioFormat = 16;
pub const GST_AUDIO_FORMAT_U24: GstAudioFormat = 18;
pub const GST_AUDIO_FORMAT_S20: GstAudioFormat = 20;
pub const GST_AUDIO_FORMAT_U20: GstAudioFormat = 22;
pub const GST_AUDIO_FORMAT_S18: GstAudioFormat = 24;
pub const GST_AUDIO_FORMAT_U18: GstAudioFormat = 26;
pub const GST_AUDIO_FORMAT_F32: GstAudioFormat = 28;
pub const GST_AUDIO_FORMAT_F64: GstAudioFormat = 30;
pub type GstAudioLayout = c_int;
pub const GST_AUDIO_LAYOUT_INTERLEAVED: GstAudioLayout = 0;

View file

@ -153,6 +153,7 @@ pub trait AggregatorExt: IsA<Aggregator> + sealed::Sealed + 'static {
}
#[doc(alias = "gst_aggregator_set_latency")]
#[doc(alias = "latency")]
fn set_latency(
&self,
min_latency: gst::ClockTime,

View file

@ -56,6 +56,7 @@ pub trait BaseSinkExt: IsA<BaseSink> + sealed::Sealed + 'static {
#[doc(alias = "gst_base_sink_get_last_sample")]
#[doc(alias = "get_last_sample")]
#[doc(alias = "last-sample")]
fn last_sample(&self) -> Option<gst::Sample> {
unsafe {
from_glib_full(ffi::gst_base_sink_get_last_sample(
@ -77,12 +78,14 @@ pub trait BaseSinkExt: IsA<BaseSink> + sealed::Sealed + 'static {
#[doc(alias = "gst_base_sink_get_max_bitrate")]
#[doc(alias = "get_max_bitrate")]
#[doc(alias = "max-bitrate")]
fn max_bitrate(&self) -> u64 {
unsafe { ffi::gst_base_sink_get_max_bitrate(self.as_ref().to_glib_none().0) }
}
#[doc(alias = "gst_base_sink_get_max_lateness")]
#[doc(alias = "get_max_lateness")]
#[doc(alias = "max-lateness")]
fn max_lateness(&self) -> i64 {
unsafe { ffi::gst_base_sink_get_max_lateness(self.as_ref().to_glib_none().0) }
}
@ -91,6 +94,7 @@ pub trait BaseSinkExt: IsA<BaseSink> + sealed::Sealed + 'static {
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
#[doc(alias = "gst_base_sink_get_processing_deadline")]
#[doc(alias = "get_processing_deadline")]
#[doc(alias = "processing-deadline")]
fn processing_deadline(&self) -> gst::ClockTime {
unsafe {
try_from_glib(ffi::gst_base_sink_get_processing_deadline(
@ -102,6 +106,7 @@ pub trait BaseSinkExt: IsA<BaseSink> + sealed::Sealed + 'static {
#[doc(alias = "gst_base_sink_get_render_delay")]
#[doc(alias = "get_render_delay")]
#[doc(alias = "render-delay")]
fn render_delay(&self) -> gst::ClockTime {
unsafe {
try_from_glib(ffi::gst_base_sink_get_render_delay(
@ -121,23 +126,27 @@ pub trait BaseSinkExt: IsA<BaseSink> + sealed::Sealed + 'static {
#[doc(alias = "gst_base_sink_get_sync")]
#[doc(alias = "get_sync")]
#[doc(alias = "sync")]
fn is_sync(&self) -> bool {
unsafe { from_glib(ffi::gst_base_sink_get_sync(self.as_ref().to_glib_none().0)) }
}
#[doc(alias = "gst_base_sink_get_throttle_time")]
#[doc(alias = "get_throttle_time")]
#[doc(alias = "throttle-time")]
fn throttle_time(&self) -> u64 {
unsafe { ffi::gst_base_sink_get_throttle_time(self.as_ref().to_glib_none().0) }
}
#[doc(alias = "gst_base_sink_get_ts_offset")]
#[doc(alias = "get_ts_offset")]
#[doc(alias = "ts-offset")]
fn ts_offset(&self) -> gst::ClockTimeDiff {
unsafe { ffi::gst_base_sink_get_ts_offset(self.as_ref().to_glib_none().0) }
}
#[doc(alias = "gst_base_sink_set_blocksize")]
#[doc(alias = "blocksize")]
fn set_blocksize(&self, blocksize: u32) {
unsafe {
ffi::gst_base_sink_set_blocksize(self.as_ref().to_glib_none().0, blocksize);
@ -155,6 +164,7 @@ pub trait BaseSinkExt: IsA<BaseSink> + sealed::Sealed + 'static {
}
#[doc(alias = "gst_base_sink_set_max_bitrate")]
#[doc(alias = "max-bitrate")]
fn set_max_bitrate(&self, max_bitrate: u64) {
unsafe {
ffi::gst_base_sink_set_max_bitrate(self.as_ref().to_glib_none().0, max_bitrate);
@ -162,6 +172,7 @@ pub trait BaseSinkExt: IsA<BaseSink> + sealed::Sealed + 'static {
}
#[doc(alias = "gst_base_sink_set_max_lateness")]
#[doc(alias = "max-lateness")]
fn set_max_lateness(&self, max_lateness: i64) {
unsafe {
ffi::gst_base_sink_set_max_lateness(self.as_ref().to_glib_none().0, max_lateness);
@ -171,6 +182,7 @@ pub trait BaseSinkExt: IsA<BaseSink> + sealed::Sealed + 'static {
#[cfg(feature = "v1_16")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
#[doc(alias = "gst_base_sink_set_processing_deadline")]
#[doc(alias = "processing-deadline")]
fn set_processing_deadline(&self, processing_deadline: gst::ClockTime) {
unsafe {
ffi::gst_base_sink_set_processing_deadline(
@ -181,6 +193,7 @@ pub trait BaseSinkExt: IsA<BaseSink> + sealed::Sealed + 'static {
}
#[doc(alias = "gst_base_sink_set_render_delay")]
#[doc(alias = "render-delay")]
fn set_render_delay(&self, delay: gst::ClockTime) {
unsafe {
ffi::gst_base_sink_set_render_delay(self.as_ref().to_glib_none().0, delay.into_glib());
@ -188,6 +201,7 @@ pub trait BaseSinkExt: IsA<BaseSink> + sealed::Sealed + 'static {
}
#[doc(alias = "gst_base_sink_set_sync")]
#[doc(alias = "sync")]
fn set_sync(&self, sync: bool) {
unsafe {
ffi::gst_base_sink_set_sync(self.as_ref().to_glib_none().0, sync.into_glib());
@ -195,6 +209,7 @@ pub trait BaseSinkExt: IsA<BaseSink> + sealed::Sealed + 'static {
}
#[doc(alias = "gst_base_sink_set_throttle_time")]
#[doc(alias = "throttle-time")]
fn set_throttle_time(&self, throttle: u64) {
unsafe {
ffi::gst_base_sink_set_throttle_time(self.as_ref().to_glib_none().0, throttle);
@ -202,6 +217,7 @@ pub trait BaseSinkExt: IsA<BaseSink> + sealed::Sealed + 'static {
}
#[doc(alias = "gst_base_sink_set_ts_offset")]
#[doc(alias = "ts-offset")]
fn set_ts_offset(&self, offset: gst::ClockTimeDiff) {
unsafe {
ffi::gst_base_sink_set_ts_offset(self.as_ref().to_glib_none().0, offset);

View file

@ -52,6 +52,7 @@ pub trait BaseSrcExt: IsA<BaseSrc> + sealed::Sealed + 'static {
#[doc(alias = "gst_base_src_get_do_timestamp")]
#[doc(alias = "get_do_timestamp")]
#[doc(alias = "do-timestamp")]
fn does_timestamp(&self) -> bool {
unsafe {
from_glib(ffi::gst_base_src_get_do_timestamp(
@ -126,6 +127,7 @@ pub trait BaseSrcExt: IsA<BaseSrc> + sealed::Sealed + 'static {
}
#[doc(alias = "gst_base_src_set_automatic_eos")]
#[doc(alias = "automatic-eos")]
fn set_automatic_eos(&self, automatic_eos: bool) {
unsafe {
ffi::gst_base_src_set_automatic_eos(
@ -136,6 +138,7 @@ pub trait BaseSrcExt: IsA<BaseSrc> + sealed::Sealed + 'static {
}
#[doc(alias = "gst_base_src_set_blocksize")]
#[doc(alias = "blocksize")]
fn set_blocksize(&self, blocksize: u32) {
unsafe {
ffi::gst_base_src_set_blocksize(self.as_ref().to_glib_none().0, blocksize);
@ -153,6 +156,7 @@ pub trait BaseSrcExt: IsA<BaseSrc> + sealed::Sealed + 'static {
}
#[doc(alias = "gst_base_src_set_do_timestamp")]
#[doc(alias = "do-timestamp")]
fn set_do_timestamp(&self, timestamp: bool) {
unsafe {
ffi::gst_base_src_set_do_timestamp(

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 6a8847ce15a5)
Generated by gir (https://github.com/gtk-rs/gir @ 5f72cf0d9b99)
from gir-files (https://github.com/gtk-rs/gir-files @ 6cd7b656acd6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ c988e03b5e99)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 6a8847ce15a5)
Generated by gir (https://github.com/gtk-rs/gir @ 5f72cf0d9b99)
from gir-files (https://github.com/gtk-rs/gir-files @ 6cd7b656acd6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ c988e03b5e99)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 6a8847ce15a5)
Generated by gir (https://github.com/gtk-rs/gir @ 5f72cf0d9b99)
from gir-files (https://github.com/gtk-rs/gir-files @ 6cd7b656acd6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ c988e03b5e99)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 6a8847ce15a5)
Generated by gir (https://github.com/gtk-rs/gir @ 5f72cf0d9b99)
from gir-files (https://github.com/gtk-rs/gir-files @ 6cd7b656acd6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ c988e03b5e99)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 6a8847ce15a5)
Generated by gir (https://github.com/gtk-rs/gir @ 5f72cf0d9b99)
from gir-files (https://github.com/gtk-rs/gir-files @ 6cd7b656acd6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ c988e03b5e99)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 6a8847ce15a5)
Generated by gir (https://github.com/gtk-rs/gir @ 5f72cf0d9b99)
from gir-files (https://github.com/gtk-rs/gir-files @ 6cd7b656acd6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ c988e03b5e99)

View file

@ -156,6 +156,7 @@ pub trait AssetExt: IsA<Asset> + sealed::Sealed + 'static {
#[doc(alias = "ges_asset_get_extractable_type")]
#[doc(alias = "get_extractable_type")]
#[doc(alias = "extractable-type")]
fn extractable_type(&self) -> glib::types::Type {
unsafe {
from_glib(ffi::ges_asset_get_extractable_type(
@ -179,6 +180,7 @@ pub trait AssetExt: IsA<Asset> + sealed::Sealed + 'static {
#[doc(alias = "ges_asset_get_proxy_target")]
#[doc(alias = "get_proxy_target")]
#[doc(alias = "proxy-target")]
#[must_use]
fn proxy_target(&self) -> Option<Asset> {
unsafe {
@ -198,6 +200,7 @@ pub trait AssetExt: IsA<Asset> + sealed::Sealed + 'static {
}
#[doc(alias = "ges_asset_set_proxy")]
#[doc(alias = "proxy")]
fn set_proxy(&self, proxy: Option<&impl IsA<Asset>>) -> Result<(), glib::error::BoolError> {
unsafe {
glib::result_from_gboolean!(

View file

@ -128,6 +128,7 @@ pub trait ClipExt: IsA<Clip> + sealed::Sealed + 'static {
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
#[doc(alias = "ges_clip_get_duration_limit")]
#[doc(alias = "get_duration_limit")]
#[doc(alias = "duration-limit")]
fn duration_limit(&self) -> gst::ClockTime {
unsafe {
try_from_glib(ffi::ges_clip_get_duration_limit(
@ -170,6 +171,7 @@ pub trait ClipExt: IsA<Clip> + sealed::Sealed + 'static {
#[doc(alias = "ges_clip_get_supported_formats")]
#[doc(alias = "get_supported_formats")]
#[doc(alias = "supported-formats")]
fn supported_formats(&self) -> TrackType {
unsafe {
from_glib(ffi::ges_clip_get_supported_formats(
@ -312,6 +314,7 @@ pub trait ClipExt: IsA<Clip> + sealed::Sealed + 'static {
}
#[doc(alias = "ges_clip_set_supported_formats")]
#[doc(alias = "supported-formats")]
fn set_supported_formats(&self, supportedformats: TrackType) {
unsafe {
ffi::ges_clip_set_supported_formats(

View file

@ -72,6 +72,7 @@ pub trait ClipAssetExt: IsA<ClipAsset> + sealed::Sealed + 'static {
#[doc(alias = "ges_clip_asset_get_supported_formats")]
#[doc(alias = "get_supported_formats")]
#[doc(alias = "supported-formats")]
fn supported_formats(&self) -> TrackType {
unsafe {
from_glib(ffi::ges_clip_asset_get_supported_formats(
@ -81,6 +82,7 @@ pub trait ClipAssetExt: IsA<ClipAsset> + sealed::Sealed + 'static {
}
#[doc(alias = "ges_clip_asset_set_supported_formats")]
#[doc(alias = "supported-formats")]
fn set_supported_formats(&self, supportedformats: TrackType) {
unsafe {
ffi::ges_clip_asset_set_supported_formats(

View file

@ -33,6 +33,7 @@ impl DiscovererManager {
#[doc(alias = "ges_discoverer_manager_get_use_cache")]
#[doc(alias = "get_use_cache")]
#[doc(alias = "use-cache")]
pub fn uses_cache(&self) -> bool {
unsafe {
from_glib(ffi::ges_discoverer_manager_get_use_cache(
@ -42,6 +43,7 @@ impl DiscovererManager {
}
#[doc(alias = "ges_discoverer_manager_set_timeout")]
#[doc(alias = "timeout")]
pub fn set_timeout(&self, timeout: impl Into<Option<gst::ClockTime>>) {
unsafe {
ffi::ges_discoverer_manager_set_timeout(
@ -52,19 +54,24 @@ impl DiscovererManager {
}
#[doc(alias = "ges_discoverer_manager_set_use_cache")]
#[doc(alias = "use-cache")]
pub fn set_use_cache(&self, use_cache: bool) {
unsafe {
ffi::ges_discoverer_manager_set_use_cache(self.to_glib_none().0, use_cache.into_glib());
}
}
#[cfg(not(feature = "v1_24"))]
#[cfg_attr(docsrs, doc(cfg(not(feature = "v1_24"))))]
#[doc(alias = "use-cache")]
pub fn get_property_use_cache(&self) -> bool {
pub fn uses_cache(&self) -> bool {
ObjectExt::property(self, "use-cache")
}
#[cfg(not(feature = "v1_24"))]
#[cfg_attr(docsrs, doc(cfg(not(feature = "v1_24"))))]
#[doc(alias = "use-cache")]
pub fn set_property_use_cache(&self, use_cache: bool) {
pub fn set_use_cache(&self, use_cache: bool) {
ObjectExt::set_property(self, "use-cache", use_cache)
}

View file

@ -146,6 +146,7 @@ pub trait LayerExt: IsA<Layer> + sealed::Sealed + 'static {
#[doc(alias = "ges_layer_get_auto_transition")]
#[doc(alias = "get_auto_transition")]
#[doc(alias = "auto-transition")]
fn is_auto_transition(&self) -> bool {
unsafe {
from_glib(ffi::ges_layer_get_auto_transition(
@ -233,6 +234,7 @@ pub trait LayerExt: IsA<Layer> + sealed::Sealed + 'static {
}
#[doc(alias = "ges_layer_set_auto_transition")]
#[doc(alias = "auto-transition")]
fn set_auto_transition(&self, auto_transition: bool) {
unsafe {
ffi::ges_layer_set_auto_transition(
@ -245,6 +247,7 @@ pub trait LayerExt: IsA<Layer> + sealed::Sealed + 'static {
#[cfg_attr(feature = "v1_16", deprecated = "Since 1.16")]
#[allow(deprecated)]
#[doc(alias = "ges_layer_set_priority")]
#[doc(alias = "priority")]
fn set_priority(&self, priority: u32) {
unsafe {
ffi::ges_layer_set_priority(self.as_ref().to_glib_none().0, priority);

View file

@ -137,6 +137,7 @@ pub trait GESPipelineExt: IsA<Pipeline> + sealed::Sealed + 'static {
}
#[doc(alias = "ges_pipeline_set_mode")]
#[doc(alias = "mode")]
fn set_mode(&self, mode: PipelineFlags) -> Result<(), glib::error::BoolError> {
unsafe {
glib::result_from_gboolean!(
@ -165,6 +166,7 @@ pub trait GESPipelineExt: IsA<Pipeline> + sealed::Sealed + 'static {
}
#[doc(alias = "ges_pipeline_set_timeline")]
#[doc(alias = "timeline")]
fn set_timeline(&self, timeline: &impl IsA<Timeline>) -> Result<(), glib::error::BoolError> {
unsafe {
glib::result_from_gboolean!(

View file

@ -80,6 +80,7 @@ pub trait TestClipExt: IsA<TestClip> + sealed::Sealed + 'static {
}
#[doc(alias = "ges_test_clip_set_mute")]
#[doc(alias = "mute")]
fn set_mute(&self, mute: bool) {
unsafe {
ffi::ges_test_clip_set_mute(self.as_ref().to_glib_none().0, mute.into_glib());
@ -87,6 +88,7 @@ pub trait TestClipExt: IsA<TestClip> + sealed::Sealed + 'static {
}
#[doc(alias = "ges_test_clip_set_volume")]
#[doc(alias = "volume")]
fn set_volume(&self, volume: f64) {
unsafe {
ffi::ges_test_clip_set_volume(self.as_ref().to_glib_none().0, volume);
@ -94,6 +96,7 @@ pub trait TestClipExt: IsA<TestClip> + sealed::Sealed + 'static {
}
#[doc(alias = "ges_test_clip_set_vpattern")]
#[doc(alias = "vpattern")]
fn set_vpattern(&self, vpattern: VideoTestPattern) {
unsafe {
ffi::ges_test_clip_set_vpattern(self.as_ref().to_glib_none().0, vpattern.into_glib());

View file

@ -47,6 +47,7 @@ pub trait TextOverlayClipExt: IsA<TextOverlayClip> + sealed::Sealed + 'static {
#[doc(alias = "ges_text_overlay_clip_get_font_desc")]
#[doc(alias = "get_font_desc")]
#[doc(alias = "font-desc")]
fn font_desc(&self) -> Option<glib::GString> {
unsafe {
from_glib_none(ffi::ges_text_overlay_clip_get_font_desc(
@ -98,6 +99,7 @@ pub trait TextOverlayClipExt: IsA<TextOverlayClip> + sealed::Sealed + 'static {
}
#[doc(alias = "ges_text_overlay_clip_set_color")]
#[doc(alias = "color")]
fn set_color(&self, color: u32) {
unsafe {
ffi::ges_text_overlay_clip_set_color(self.as_ref().to_glib_none().0, color);
@ -105,6 +107,7 @@ pub trait TextOverlayClipExt: IsA<TextOverlayClip> + sealed::Sealed + 'static {
}
#[doc(alias = "ges_text_overlay_clip_set_font_desc")]
#[doc(alias = "font-desc")]
fn set_font_desc(&self, font_desc: Option<&str>) {
unsafe {
ffi::ges_text_overlay_clip_set_font_desc(
@ -125,6 +128,7 @@ pub trait TextOverlayClipExt: IsA<TextOverlayClip> + sealed::Sealed + 'static {
}
#[doc(alias = "ges_text_overlay_clip_set_text")]
#[doc(alias = "text")]
fn set_text(&self, text: Option<&str>) {
unsafe {
ffi::ges_text_overlay_clip_set_text(
@ -145,6 +149,7 @@ pub trait TextOverlayClipExt: IsA<TextOverlayClip> + sealed::Sealed + 'static {
}
#[doc(alias = "ges_text_overlay_clip_set_xpos")]
#[doc(alias = "xpos")]
fn set_xpos(&self, position: f64) {
unsafe {
ffi::ges_text_overlay_clip_set_xpos(self.as_ref().to_glib_none().0, position);
@ -152,6 +157,7 @@ pub trait TextOverlayClipExt: IsA<TextOverlayClip> + sealed::Sealed + 'static {
}
#[doc(alias = "ges_text_overlay_clip_set_ypos")]
#[doc(alias = "ypos")]
fn set_ypos(&self, position: f64) {
unsafe {
ffi::ges_text_overlay_clip_set_ypos(self.as_ref().to_glib_none().0, position);

View file

@ -143,6 +143,7 @@ pub trait TimelineExt: IsA<Timeline> + sealed::Sealed + 'static {
#[doc(alias = "ges_timeline_get_auto_transition")]
#[doc(alias = "get_auto_transition")]
#[doc(alias = "auto-transition")]
fn is_auto_transition(&self) -> bool {
unsafe {
from_glib(ffi::ges_timeline_get_auto_transition(
@ -252,6 +253,7 @@ pub trait TimelineExt: IsA<Timeline> + sealed::Sealed + 'static {
#[doc(alias = "ges_timeline_get_snapping_distance")]
#[doc(alias = "get_snapping_distance")]
#[doc(alias = "snapping-distance")]
fn snapping_distance(&self) -> Option<gst::ClockTime> {
unsafe {
from_glib(ffi::ges_timeline_get_snapping_distance(
@ -393,6 +395,7 @@ pub trait TimelineExt: IsA<Timeline> + sealed::Sealed + 'static {
}
#[doc(alias = "ges_timeline_set_auto_transition")]
#[doc(alias = "auto-transition")]
fn set_auto_transition(&self, auto_transition: bool) {
unsafe {
ffi::ges_timeline_set_auto_transition(
@ -403,6 +406,7 @@ pub trait TimelineExt: IsA<Timeline> + sealed::Sealed + 'static {
}
#[doc(alias = "ges_timeline_set_snapping_distance")]
#[doc(alias = "snapping-distance")]
fn set_snapping_distance(&self, snapping_distance: gst::ClockTime) {
unsafe {
ffi::ges_timeline_set_snapping_distance(

View file

@ -191,6 +191,7 @@ pub trait TimelineElementExt: IsA<TimelineElement> + sealed::Sealed + 'static {
#[doc(alias = "ges_timeline_element_get_max_duration")]
#[doc(alias = "get_max_duration")]
#[doc(alias = "max-duration")]
fn max_duration(&self) -> Option<gst::ClockTime> {
unsafe {
from_glib(ffi::ges_timeline_element_get_max_duration(
@ -461,6 +462,7 @@ pub trait TimelineElementExt: IsA<TimelineElement> + sealed::Sealed + 'static {
//}
#[doc(alias = "ges_timeline_element_set_duration")]
#[doc(alias = "duration")]
fn set_duration(&self, duration: impl Into<Option<gst::ClockTime>>) -> bool {
unsafe {
from_glib(ffi::ges_timeline_element_set_duration(
@ -481,6 +483,7 @@ pub trait TimelineElementExt: IsA<TimelineElement> + sealed::Sealed + 'static {
}
#[doc(alias = "ges_timeline_element_set_max_duration")]
#[doc(alias = "max-duration")]
fn set_max_duration(&self, maxduration: impl Into<Option<gst::ClockTime>>) -> bool {
unsafe {
from_glib(ffi::ges_timeline_element_set_max_duration(
@ -491,6 +494,7 @@ pub trait TimelineElementExt: IsA<TimelineElement> + sealed::Sealed + 'static {
}
#[doc(alias = "ges_timeline_element_set_name")]
#[doc(alias = "name")]
fn set_name(&self, name: Option<&str>) -> Result<(), glib::error::BoolError> {
unsafe {
glib::result_from_gboolean!(
@ -504,6 +508,7 @@ pub trait TimelineElementExt: IsA<TimelineElement> + sealed::Sealed + 'static {
}
#[doc(alias = "ges_timeline_element_set_parent")]
#[doc(alias = "parent")]
fn set_parent(&self, parent: &impl IsA<TimelineElement>) -> Result<(), glib::error::BoolError> {
unsafe {
glib::result_from_gboolean!(
@ -519,6 +524,7 @@ pub trait TimelineElementExt: IsA<TimelineElement> + sealed::Sealed + 'static {
#[deprecated = "Since 1.10"]
#[allow(deprecated)]
#[doc(alias = "ges_timeline_element_set_priority")]
#[doc(alias = "priority")]
fn set_priority(&self, priority: u32) -> bool {
unsafe {
from_glib(ffi::ges_timeline_element_set_priority(
@ -529,6 +535,7 @@ pub trait TimelineElementExt: IsA<TimelineElement> + sealed::Sealed + 'static {
}
#[doc(alias = "ges_timeline_element_set_start")]
#[doc(alias = "start")]
fn set_start(&self, start: gst::ClockTime) -> bool {
unsafe {
from_glib(ffi::ges_timeline_element_set_start(
@ -539,6 +546,7 @@ pub trait TimelineElementExt: IsA<TimelineElement> + sealed::Sealed + 'static {
}
#[doc(alias = "ges_timeline_element_set_timeline")]
#[doc(alias = "timeline")]
fn set_timeline(&self, timeline: &impl IsA<Timeline>) -> Result<(), glib::error::BoolError> {
unsafe {
glib::result_from_gboolean!(

View file

@ -52,6 +52,7 @@ pub trait TitleClipExt: IsA<TitleClip> + sealed::Sealed + 'static {
#[allow(deprecated)]
#[doc(alias = "ges_title_clip_get_font_desc")]
#[doc(alias = "get_font_desc")]
#[doc(alias = "font-desc")]
fn font_desc(&self) -> Option<glib::GString> {
unsafe {
from_glib_full(ffi::ges_title_clip_get_font_desc(
@ -119,6 +120,7 @@ pub trait TitleClipExt: IsA<TitleClip> + sealed::Sealed + 'static {
#[deprecated = "Since 1.6"]
#[allow(deprecated)]
#[doc(alias = "ges_title_clip_set_background")]
#[doc(alias = "background")]
fn set_background(&self, background: u32) {
unsafe {
ffi::ges_title_clip_set_background(self.as_ref().to_glib_none().0, background);
@ -128,6 +130,7 @@ pub trait TitleClipExt: IsA<TitleClip> + sealed::Sealed + 'static {
#[deprecated = "Since 1.6"]
#[allow(deprecated)]
#[doc(alias = "ges_title_clip_set_color")]
#[doc(alias = "color")]
fn set_color(&self, color: u32) {
unsafe {
ffi::ges_title_clip_set_color(self.as_ref().to_glib_none().0, color);
@ -137,6 +140,7 @@ pub trait TitleClipExt: IsA<TitleClip> + sealed::Sealed + 'static {
#[deprecated = "Since 1.6"]
#[allow(deprecated)]
#[doc(alias = "ges_title_clip_set_font_desc")]
#[doc(alias = "font-desc")]
fn set_font_desc(&self, font_desc: Option<&str>) {
unsafe {
ffi::ges_title_clip_set_font_desc(
@ -149,6 +153,7 @@ pub trait TitleClipExt: IsA<TitleClip> + sealed::Sealed + 'static {
#[deprecated = "Since 1.6"]
#[allow(deprecated)]
#[doc(alias = "ges_title_clip_set_halignment")]
#[doc(alias = "halignment")]
fn set_halignment(&self, halign: TextHAlign) {
unsafe {
ffi::ges_title_clip_set_halignment(self.as_ref().to_glib_none().0, halign.into_glib());
@ -158,6 +163,7 @@ pub trait TitleClipExt: IsA<TitleClip> + sealed::Sealed + 'static {
#[deprecated = "Since 1.6"]
#[allow(deprecated)]
#[doc(alias = "ges_title_clip_set_text")]
#[doc(alias = "text")]
fn set_text(&self, text: Option<&str>) {
unsafe {
ffi::ges_title_clip_set_text(self.as_ref().to_glib_none().0, text.to_glib_none().0);
@ -167,6 +173,7 @@ pub trait TitleClipExt: IsA<TitleClip> + sealed::Sealed + 'static {
#[deprecated = "Since 1.6"]
#[allow(deprecated)]
#[doc(alias = "ges_title_clip_set_valignment")]
#[doc(alias = "valignment")]
fn set_valignment(&self, valign: TextVAlign) {
unsafe {
ffi::ges_title_clip_set_valignment(self.as_ref().to_glib_none().0, valign.into_glib());
@ -176,6 +183,7 @@ pub trait TitleClipExt: IsA<TitleClip> + sealed::Sealed + 'static {
#[deprecated = "Since 1.6"]
#[allow(deprecated)]
#[doc(alias = "ges_title_clip_set_xpos")]
#[doc(alias = "xpos")]
fn set_xpos(&self, position: f64) {
unsafe {
ffi::ges_title_clip_set_xpos(self.as_ref().to_glib_none().0, position);
@ -185,6 +193,7 @@ pub trait TitleClipExt: IsA<TitleClip> + sealed::Sealed + 'static {
#[deprecated = "Since 1.6"]
#[allow(deprecated)]
#[doc(alias = "ges_title_clip_set_ypos")]
#[doc(alias = "ypos")]
fn set_ypos(&self, position: f64) {
unsafe {
ffi::ges_title_clip_set_ypos(self.as_ref().to_glib_none().0, position);

View file

@ -92,6 +92,7 @@ pub trait GESTrackExt: IsA<Track> + sealed::Sealed + 'static {
#[doc(alias = "ges_track_get_mixing")]
#[doc(alias = "get_mixing")]
#[doc(alias = "mixing")]
fn is_mixing(&self) -> bool {
unsafe { from_glib(ffi::ges_track_get_mixing(self.as_ref().to_glib_none().0)) }
}
@ -100,6 +101,7 @@ pub trait GESTrackExt: IsA<Track> + sealed::Sealed + 'static {
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
#[doc(alias = "ges_track_get_restriction_caps")]
#[doc(alias = "get_restriction_caps")]
#[doc(alias = "restriction-caps")]
fn restriction_caps(&self) -> Option<gst::Caps> {
unsafe {
from_glib_full(ffi::ges_track_get_restriction_caps(
@ -156,6 +158,7 @@ pub trait GESTrackExt: IsA<Track> + sealed::Sealed + 'static {
//}
#[doc(alias = "ges_track_set_mixing")]
#[doc(alias = "mixing")]
fn set_mixing(&self, mixing: bool) {
unsafe {
ffi::ges_track_set_mixing(self.as_ref().to_glib_none().0, mixing.into_glib());
@ -163,6 +166,7 @@ pub trait GESTrackExt: IsA<Track> + sealed::Sealed + 'static {
}
#[doc(alias = "ges_track_set_restriction_caps")]
#[doc(alias = "restriction-caps")]
fn set_restriction_caps(&self, caps: &gst::Caps) {
unsafe {
ffi::ges_track_set_restriction_caps(
@ -208,8 +212,10 @@ pub trait GESTrackExt: IsA<Track> + sealed::Sealed + 'static {
ObjectExt::set_property(self.as_ref(), "id", id)
}
#[cfg(not(feature = "v1_18"))]
#[cfg_attr(docsrs, doc(cfg(not(feature = "v1_18"))))]
#[doc(alias = "restriction-caps")]
fn get_property_restriction_caps(&self) -> Option<gst::Caps> {
fn restriction_caps(&self) -> Option<gst::Caps> {
ObjectExt::property(self.as_ref(), "restriction-caps")
}

View file

@ -98,6 +98,7 @@ pub trait TrackElementExt: IsA<TrackElement> + sealed::Sealed + 'static {
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
#[doc(alias = "ges_track_element_get_auto_clamp_control_sources")]
#[doc(alias = "get_auto_clamp_control_sources")]
#[doc(alias = "auto-clamp-control-sources")]
fn is_auto_clamp_control_sources(&self) -> bool {
unsafe {
from_glib(ffi::ges_track_element_get_auto_clamp_control_sources(
@ -203,6 +204,7 @@ pub trait TrackElementExt: IsA<TrackElement> + sealed::Sealed + 'static {
#[doc(alias = "ges_track_element_get_track_type")]
#[doc(alias = "get_track_type")]
#[doc(alias = "track-type")]
fn track_type(&self) -> TrackType {
unsafe {
from_glib(ffi::ges_track_element_get_track_type(
@ -290,6 +292,7 @@ pub trait TrackElementExt: IsA<TrackElement> + sealed::Sealed + 'static {
}
#[doc(alias = "ges_track_element_set_active")]
#[doc(alias = "active")]
fn set_active(&self, active: bool) -> bool {
unsafe {
from_glib(ffi::ges_track_element_set_active(
@ -302,6 +305,7 @@ pub trait TrackElementExt: IsA<TrackElement> + sealed::Sealed + 'static {
#[cfg(feature = "v1_18")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
#[doc(alias = "ges_track_element_set_auto_clamp_control_sources")]
#[doc(alias = "auto-clamp-control-sources")]
fn set_auto_clamp_control_sources(&self, auto_clamp: bool) {
unsafe {
ffi::ges_track_element_set_auto_clamp_control_sources(
@ -370,6 +374,7 @@ pub trait TrackElementExt: IsA<TrackElement> + sealed::Sealed + 'static {
#[cfg(feature = "v1_18")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
#[doc(alias = "ges_track_element_set_has_internal_source")]
#[doc(alias = "has-internal-source")]
fn set_has_internal_source(&self, has_internal_source: bool) -> bool {
unsafe {
from_glib(ffi::ges_track_element_set_has_internal_source(
@ -380,6 +385,7 @@ pub trait TrackElementExt: IsA<TrackElement> + sealed::Sealed + 'static {
}
#[doc(alias = "ges_track_element_set_track_type")]
#[doc(alias = "track-type")]
fn set_track_type(&self, type_: TrackType) {
unsafe {
ffi::ges_track_element_set_track_type(

View file

@ -56,6 +56,7 @@ pub trait TrackElementAssetExt: IsA<TrackElementAsset> + sealed::Sealed + 'stati
#[doc(alias = "ges_track_element_asset_get_track_type")]
#[doc(alias = "get_track_type")]
#[doc(alias = "track-type")]
fn track_type(&self) -> TrackType {
unsafe {
from_glib(ffi::ges_track_element_asset_get_track_type(
@ -65,6 +66,7 @@ pub trait TrackElementAssetExt: IsA<TrackElementAsset> + sealed::Sealed + 'stati
}
#[doc(alias = "ges_track_element_asset_set_track_type")]
#[doc(alias = "track-type")]
fn set_track_type(&self, type_: TrackType) {
unsafe {
ffi::ges_track_element_asset_set_track_type(

View file

@ -56,6 +56,7 @@ pub trait UriClipExt: IsA<UriClip> + sealed::Sealed + 'static {
}
#[doc(alias = "ges_uri_clip_set_is_image")]
#[doc(alias = "is-image")]
fn set_is_image(&self, is_image: bool) {
unsafe {
ffi::ges_uri_clip_set_is_image(self.as_ref().to_glib_none().0, is_image.into_glib());
@ -63,6 +64,7 @@ pub trait UriClipExt: IsA<UriClip> + sealed::Sealed + 'static {
}
#[doc(alias = "ges_uri_clip_set_mute")]
#[doc(alias = "mute")]
fn set_mute(&self, mute: bool) {
unsafe {
ffi::ges_uri_clip_set_mute(self.as_ref().to_glib_none().0, mute.into_glib());

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 6a8847ce15a5)
Generated by gir (https://github.com/gtk-rs/gir @ 5f72cf0d9b99)
from gir-files (https://github.com/gtk-rs/gir-files @ 6cd7b656acd6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ c988e03b5e99)

View file

@ -56,6 +56,7 @@ pub trait VideoTransitionExt: IsA<VideoTransition> + sealed::Sealed + 'static {
#[doc(alias = "ges_video_transition_get_transition_type")]
#[doc(alias = "get_transition_type")]
#[doc(alias = "transition-type")]
fn transition_type(&self) -> VideoStandardTransitionType {
unsafe {
from_glib(ffi::ges_video_transition_get_transition_type(
@ -78,6 +79,7 @@ pub trait VideoTransitionExt: IsA<VideoTransition> + sealed::Sealed + 'static {
#[cfg_attr(feature = "v1_20", deprecated = "Since 1.20")]
#[allow(deprecated)]
#[doc(alias = "ges_video_transition_set_border")]
#[doc(alias = "border")]
fn set_border(&self, value: u32) {
unsafe {
ffi::ges_video_transition_set_border(self.as_ref().to_glib_none().0, value);
@ -97,6 +99,7 @@ pub trait VideoTransitionExt: IsA<VideoTransition> + sealed::Sealed + 'static {
}
#[doc(alias = "ges_video_transition_set_transition_type")]
#[doc(alias = "transition-type")]
fn set_transition_type(&self, type_: VideoStandardTransitionType) -> bool {
unsafe {
from_glib(ffi::ges_video_transition_set_transition_type(

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 6a8847ce15a5)
Generated by gir (https://github.com/gtk-rs/gir @ 5f72cf0d9b99)
from gir-files (https://github.com/gtk-rs/gir-files @ 6cd7b656acd6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ c988e03b5e99)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 6a8847ce15a5)
Generated by gir (https://github.com/gtk-rs/gir @ 5f72cf0d9b99)
from gir-files (https://github.com/gtk-rs/gir-files @ 6cd7b656acd6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ c988e03b5e99)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 6a8847ce15a5)
Generated by gir (https://github.com/gtk-rs/gir @ 5f72cf0d9b99)
from gir-files (https://github.com/gtk-rs/gir-files @ 6cd7b656acd6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ c988e03b5e99)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 6a8847ce15a5)
Generated by gir (https://github.com/gtk-rs/gir @ 5f72cf0d9b99)
from gir-files (https://github.com/gtk-rs/gir-files @ 6cd7b656acd6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ c988e03b5e99)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 6a8847ce15a5)
Generated by gir (https://github.com/gtk-rs/gir @ 5f72cf0d9b99)
from gir-files (https://github.com/gtk-rs/gir-files @ 6cd7b656acd6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ c988e03b5e99)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 6a8847ce15a5)
Generated by gir (https://github.com/gtk-rs/gir @ 5f72cf0d9b99)
from gir-files (https://github.com/gtk-rs/gir-files @ 6cd7b656acd6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ c988e03b5e99)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 6a8847ce15a5)
Generated by gir (https://github.com/gtk-rs/gir @ 5f72cf0d9b99)
from gir-files (https://github.com/gtk-rs/gir-files @ 6cd7b656acd6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ c988e03b5e99)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 6a8847ce15a5)
Generated by gir (https://github.com/gtk-rs/gir @ 5f72cf0d9b99)
from gir-files (https://github.com/gtk-rs/gir-files @ 6cd7b656acd6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ c988e03b5e99)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 6a8847ce15a5)
Generated by gir (https://github.com/gtk-rs/gir @ 5f72cf0d9b99)
from gir-files (https://github.com/gtk-rs/gir-files @ 6cd7b656acd6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ c988e03b5e99)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 6a8847ce15a5)
Generated by gir (https://github.com/gtk-rs/gir @ 5f72cf0d9b99)
from gir-files (https://github.com/gtk-rs/gir-files @ 6cd7b656acd6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ c988e03b5e99)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 6a8847ce15a5)
Generated by gir (https://github.com/gtk-rs/gir @ 5f72cf0d9b99)
from gir-files (https://github.com/gtk-rs/gir-files @ 6cd7b656acd6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ c988e03b5e99)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 6a8847ce15a5)
Generated by gir (https://github.com/gtk-rs/gir @ 5f72cf0d9b99)
from gir-files (https://github.com/gtk-rs/gir-files @ 6cd7b656acd6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ c988e03b5e99)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 6a8847ce15a5)
Generated by gir (https://github.com/gtk-rs/gir @ 5f72cf0d9b99)
from gir-files (https://github.com/gtk-rs/gir-files @ 6cd7b656acd6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ c988e03b5e99)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 6a8847ce15a5)
Generated by gir (https://github.com/gtk-rs/gir @ 5f72cf0d9b99)
from gir-files (https://github.com/gtk-rs/gir-files @ 6cd7b656acd6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ c988e03b5e99)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 6a8847ce15a5)
Generated by gir (https://github.com/gtk-rs/gir @ 5f72cf0d9b99)
from gir-files (https://github.com/gtk-rs/gir-files @ 6cd7b656acd6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ c988e03b5e99)

View file

@ -36,6 +36,7 @@ impl Play {
#[doc(alias = "gst_play_get_audio_video_offset")]
#[doc(alias = "get_audio_video_offset")]
#[doc(alias = "audio-video-offset")]
pub fn audio_video_offset(&self) -> i64 {
unsafe { ffi::gst_play_get_audio_video_offset(self.to_glib_none().0) }
}
@ -48,12 +49,14 @@ impl Play {
#[doc(alias = "gst_play_get_current_audio_track")]
#[doc(alias = "get_current_audio_track")]
#[doc(alias = "current-audio-track")]
pub fn current_audio_track(&self) -> Option<PlayAudioInfo> {
unsafe { from_glib_full(ffi::gst_play_get_current_audio_track(self.to_glib_none().0)) }
}
#[doc(alias = "gst_play_get_current_subtitle_track")]
#[doc(alias = "get_current_subtitle_track")]
#[doc(alias = "current-subtitle-track")]
pub fn current_subtitle_track(&self) -> Option<PlaySubtitleInfo> {
unsafe {
from_glib_full(ffi::gst_play_get_current_subtitle_track(
@ -64,6 +67,7 @@ impl Play {
#[doc(alias = "gst_play_get_current_video_track")]
#[doc(alias = "get_current_video_track")]
#[doc(alias = "current-video-track")]
pub fn current_video_track(&self) -> Option<PlayVideoInfo> {
unsafe { from_glib_full(ffi::gst_play_get_current_video_track(self.to_glib_none().0)) }
}
@ -86,6 +90,7 @@ impl Play {
#[doc(alias = "gst_play_get_media_info")]
#[doc(alias = "get_media_info")]
#[doc(alias = "media-info")]
pub fn media_info(&self) -> Option<PlayMediaInfo> {
unsafe { from_glib_full(ffi::gst_play_get_media_info(self.to_glib_none().0)) }
}
@ -110,6 +115,7 @@ impl Play {
#[doc(alias = "gst_play_get_mute")]
#[doc(alias = "get_mute")]
#[doc(alias = "mute")]
pub fn is_muted(&self) -> bool {
unsafe { from_glib(ffi::gst_play_get_mute(self.to_glib_none().0)) }
}
@ -140,6 +146,7 @@ impl Play {
#[doc(alias = "gst_play_get_subtitle_video_offset")]
#[doc(alias = "get_subtitle_video_offset")]
#[doc(alias = "subtitle-video-offset")]
pub fn subtitle_video_offset(&self) -> i64 {
unsafe { ffi::gst_play_get_subtitle_video_offset(self.to_glib_none().0) }
}
@ -200,6 +207,7 @@ impl Play {
}
#[doc(alias = "gst_play_set_audio_video_offset")]
#[doc(alias = "audio-video-offset")]
pub fn set_audio_video_offset(&self, offset: i64) {
unsafe {
ffi::gst_play_set_audio_video_offset(self.to_glib_none().0, offset);
@ -228,6 +236,7 @@ impl Play {
}
#[doc(alias = "gst_play_set_mute")]
#[doc(alias = "mute")]
pub fn set_mute(&self, val: bool) {
unsafe {
ffi::gst_play_set_mute(self.to_glib_none().0, val.into_glib());
@ -235,6 +244,7 @@ impl Play {
}
#[doc(alias = "gst_play_set_rate")]
#[doc(alias = "rate")]
pub fn set_rate(&self, rate: f64) {
unsafe {
ffi::gst_play_set_rate(self.to_glib_none().0, rate);
@ -266,6 +276,7 @@ impl Play {
}
#[doc(alias = "gst_play_set_subtitle_video_offset")]
#[doc(alias = "subtitle-video-offset")]
pub fn set_subtitle_video_offset(&self, offset: i64) {
unsafe {
ffi::gst_play_set_subtitle_video_offset(self.to_glib_none().0, offset);
@ -273,6 +284,7 @@ impl Play {
}
#[doc(alias = "gst_play_set_uri")]
#[doc(alias = "uri")]
pub fn set_uri(&self, uri: Option<&str>) {
unsafe {
ffi::gst_play_set_uri(self.to_glib_none().0, uri.to_glib_none().0);
@ -314,6 +326,7 @@ impl Play {
}
#[doc(alias = "gst_play_set_volume")]
#[doc(alias = "volume")]
pub fn set_volume(&self, val: f64) {
unsafe {
ffi::gst_play_set_volume(self.to_glib_none().0, val);

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 6a8847ce15a5)
Generated by gir (https://github.com/gtk-rs/gir @ 5f72cf0d9b99)
from gir-files (https://github.com/gtk-rs/gir-files @ 6cd7b656acd6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ c988e03b5e99)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 6a8847ce15a5)
Generated by gir (https://github.com/gtk-rs/gir @ 5f72cf0d9b99)
from gir-files (https://github.com/gtk-rs/gir-files @ 6cd7b656acd6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ c988e03b5e99)

View file

@ -40,6 +40,7 @@ impl Player {
#[doc(alias = "gst_player_get_audio_video_offset")]
#[doc(alias = "get_audio_video_offset")]
#[doc(alias = "audio-video-offset")]
pub fn audio_video_offset(&self) -> i64 {
unsafe { ffi::gst_player_get_audio_video_offset(self.to_glib_none().0) }
}
@ -52,6 +53,7 @@ impl Player {
#[doc(alias = "gst_player_get_current_audio_track")]
#[doc(alias = "get_current_audio_track")]
#[doc(alias = "current-audio-track")]
pub fn current_audio_track(&self) -> Option<PlayerAudioInfo> {
unsafe {
from_glib_full(ffi::gst_player_get_current_audio_track(
@ -62,6 +64,7 @@ impl Player {
#[doc(alias = "gst_player_get_current_subtitle_track")]
#[doc(alias = "get_current_subtitle_track")]
#[doc(alias = "current-subtitle-track")]
pub fn current_subtitle_track(&self) -> Option<PlayerSubtitleInfo> {
unsafe {
from_glib_full(ffi::gst_player_get_current_subtitle_track(
@ -72,6 +75,7 @@ impl Player {
#[doc(alias = "gst_player_get_current_video_track")]
#[doc(alias = "get_current_video_track")]
#[doc(alias = "current-video-track")]
pub fn current_video_track(&self) -> Option<PlayerVideoInfo> {
unsafe {
from_glib_full(ffi::gst_player_get_current_video_track(
@ -98,6 +102,7 @@ impl Player {
#[doc(alias = "gst_player_get_media_info")]
#[doc(alias = "get_media_info")]
#[doc(alias = "media-info")]
pub fn media_info(&self) -> Option<PlayerMediaInfo> {
unsafe { from_glib_full(ffi::gst_player_get_media_info(self.to_glib_none().0)) }
}
@ -116,6 +121,7 @@ impl Player {
#[doc(alias = "gst_player_get_mute")]
#[doc(alias = "get_mute")]
#[doc(alias = "mute")]
pub fn is_muted(&self) -> bool {
unsafe { from_glib(ffi::gst_player_get_mute(self.to_glib_none().0)) }
}
@ -148,6 +154,7 @@ impl Player {
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
#[doc(alias = "gst_player_get_subtitle_video_offset")]
#[doc(alias = "get_subtitle_video_offset")]
#[doc(alias = "subtitle-video-offset")]
pub fn subtitle_video_offset(&self) -> i64 {
unsafe { ffi::gst_player_get_subtitle_video_offset(self.to_glib_none().0) }
}
@ -208,6 +215,7 @@ impl Player {
}
#[doc(alias = "gst_player_set_audio_video_offset")]
#[doc(alias = "audio-video-offset")]
pub fn set_audio_video_offset(&self, offset: i64) {
unsafe {
ffi::gst_player_set_audio_video_offset(self.to_glib_none().0, offset);
@ -236,6 +244,7 @@ impl Player {
}
#[doc(alias = "gst_player_set_mute")]
#[doc(alias = "mute")]
pub fn set_mute(&self, val: bool) {
unsafe {
ffi::gst_player_set_mute(self.to_glib_none().0, val.into_glib());
@ -243,6 +252,7 @@ impl Player {
}
#[doc(alias = "gst_player_set_rate")]
#[doc(alias = "rate")]
pub fn set_rate(&self, rate: f64) {
unsafe {
ffi::gst_player_set_rate(self.to_glib_none().0, rate);
@ -276,6 +286,7 @@ impl Player {
#[cfg(feature = "v1_16")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
#[doc(alias = "gst_player_set_subtitle_video_offset")]
#[doc(alias = "subtitle-video-offset")]
pub fn set_subtitle_video_offset(&self, offset: i64) {
unsafe {
ffi::gst_player_set_subtitle_video_offset(self.to_glib_none().0, offset);
@ -283,6 +294,7 @@ impl Player {
}
#[doc(alias = "gst_player_set_uri")]
#[doc(alias = "uri")]
pub fn set_uri(&self, uri: Option<&str>) {
unsafe {
ffi::gst_player_set_uri(self.to_glib_none().0, uri.to_glib_none().0);
@ -324,6 +336,7 @@ impl Player {
}
#[doc(alias = "gst_player_set_volume")]
#[doc(alias = "volume")]
pub fn set_volume(&self, val: f64) {
unsafe {
ffi::gst_player_set_volume(self.to_glib_none().0, val);

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 6a8847ce15a5)
Generated by gir (https://github.com/gtk-rs/gir @ 5f72cf0d9b99)
from gir-files (https://github.com/gtk-rs/gir-files @ 6cd7b656acd6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ c988e03b5e99)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 6a8847ce15a5)
Generated by gir (https://github.com/gtk-rs/gir @ 5f72cf0d9b99)
from gir-files (https://github.com/gtk-rs/gir-files @ 6cd7b656acd6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ c988e03b5e99)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 6a8847ce15a5)
Generated by gir (https://github.com/gtk-rs/gir @ 5f72cf0d9b99)
from gir-files (https://github.com/gtk-rs/gir-files @ 6cd7b656acd6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ c988e03b5e99)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 6a8847ce15a5)
Generated by gir (https://github.com/gtk-rs/gir @ 5f72cf0d9b99)
from gir-files (https://github.com/gtk-rs/gir-files @ 6cd7b656acd6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ c988e03b5e99)

View file

@ -84,6 +84,7 @@ pub trait RTSPClientExt: IsA<RTSPClient> + sealed::Sealed + 'static {
#[doc(alias = "gst_rtsp_client_get_mount_points")]
#[doc(alias = "get_mount_points")]
#[doc(alias = "mount-points")]
fn mount_points(&self) -> Option<RTSPMountPoints> {
unsafe {
from_glib_full(ffi::gst_rtsp_client_get_mount_points(
@ -94,6 +95,7 @@ pub trait RTSPClientExt: IsA<RTSPClient> + sealed::Sealed + 'static {
#[doc(alias = "gst_rtsp_client_get_session_pool")]
#[doc(alias = "get_session_pool")]
#[doc(alias = "session-pool")]
fn session_pool(&self) -> Option<RTSPSessionPool> {
unsafe {
from_glib_full(ffi::gst_rtsp_client_get_session_pool(
@ -200,6 +202,7 @@ pub trait RTSPClientExt: IsA<RTSPClient> + sealed::Sealed + 'static {
}
#[doc(alias = "gst_rtsp_client_set_mount_points")]
#[doc(alias = "mount-points")]
fn set_mount_points(&self, mounts: Option<&impl IsA<RTSPMountPoints>>) {
unsafe {
ffi::gst_rtsp_client_set_mount_points(
@ -217,6 +220,7 @@ pub trait RTSPClientExt: IsA<RTSPClient> + sealed::Sealed + 'static {
//}
#[doc(alias = "gst_rtsp_client_set_session_pool")]
#[doc(alias = "session-pool")]
fn set_session_pool(&self, pool: Option<&impl IsA<RTSPSessionPool>>) {
unsafe {
ffi::gst_rtsp_client_set_session_pool(

View file

@ -112,6 +112,7 @@ pub trait RTSPMediaExt: IsA<RTSPMedia> + sealed::Sealed + 'static {
#[doc(alias = "gst_rtsp_media_get_buffer_size")]
#[doc(alias = "get_buffer_size")]
#[doc(alias = "buffer-size")]
fn buffer_size(&self) -> u32 {
unsafe { ffi::gst_rtsp_media_get_buffer_size(self.as_ref().to_glib_none().0) }
}
@ -142,6 +143,7 @@ pub trait RTSPMediaExt: IsA<RTSPMedia> + sealed::Sealed + 'static {
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
#[doc(alias = "gst_rtsp_media_get_dscp_qos")]
#[doc(alias = "get_dscp_qos")]
#[doc(alias = "dscp-qos")]
fn dscp_qos(&self) -> i32 {
unsafe { ffi::gst_rtsp_media_get_dscp_qos(self.as_ref().to_glib_none().0) }
}
@ -160,6 +162,7 @@ pub trait RTSPMediaExt: IsA<RTSPMedia> + sealed::Sealed + 'static {
#[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
#[doc(alias = "gst_rtsp_media_get_ensure_keyunit_on_start")]
#[doc(alias = "get_ensure_keyunit_on_start")]
#[doc(alias = "ensure-keyunit-on-start")]
fn is_ensure_keyunit_on_start(&self) -> bool {
unsafe {
from_glib(ffi::gst_rtsp_media_get_ensure_keyunit_on_start(
@ -172,6 +175,7 @@ pub trait RTSPMediaExt: IsA<RTSPMedia> + sealed::Sealed + 'static {
#[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
#[doc(alias = "gst_rtsp_media_get_ensure_keyunit_on_start_timeout")]
#[doc(alias = "get_ensure_keyunit_on_start_timeout")]
#[doc(alias = "ensure-keyunit-on-start-timeout")]
fn ensure_keyunit_on_start_timeout(&self) -> u32 {
unsafe {
ffi::gst_rtsp_media_get_ensure_keyunit_on_start_timeout(self.as_ref().to_glib_none().0)
@ -188,6 +192,7 @@ pub trait RTSPMediaExt: IsA<RTSPMedia> + sealed::Sealed + 'static {
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
#[doc(alias = "gst_rtsp_media_get_max_mcast_ttl")]
#[doc(alias = "get_max_mcast_ttl")]
#[doc(alias = "max-mcast-ttl")]
fn max_mcast_ttl(&self) -> u32 {
unsafe { ffi::gst_rtsp_media_get_max_mcast_ttl(self.as_ref().to_glib_none().0) }
}
@ -316,6 +321,7 @@ pub trait RTSPMediaExt: IsA<RTSPMedia> + sealed::Sealed + 'static {
#[doc(alias = "gst_rtsp_media_get_suspend_mode")]
#[doc(alias = "get_suspend_mode")]
#[doc(alias = "suspend-mode")]
fn suspend_mode(&self) -> RTSPSuspendMode {
unsafe {
from_glib(ffi::gst_rtsp_media_get_suspend_mode(
@ -326,6 +332,7 @@ pub trait RTSPMediaExt: IsA<RTSPMedia> + sealed::Sealed + 'static {
#[doc(alias = "gst_rtsp_media_get_time_provider")]
#[doc(alias = "get_time_provider")]
#[doc(alias = "time-provider")]
fn time_provider(&self, address: Option<&str>, port: u16) -> Option<gst_net::NetTimeProvider> {
unsafe {
from_glib_full(ffi::gst_rtsp_media_get_time_provider(
@ -338,6 +345,7 @@ pub trait RTSPMediaExt: IsA<RTSPMedia> + sealed::Sealed + 'static {
#[doc(alias = "gst_rtsp_media_get_transport_mode")]
#[doc(alias = "get_transport_mode")]
#[doc(alias = "transport-mode")]
fn transport_mode(&self) -> RTSPTransportMode {
unsafe {
from_glib(ffi::gst_rtsp_media_get_transport_mode(
@ -490,6 +498,7 @@ pub trait RTSPMediaExt: IsA<RTSPMedia> + sealed::Sealed + 'static {
#[cfg(feature = "v1_16")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
#[doc(alias = "gst_rtsp_media_set_bind_mcast_address")]
#[doc(alias = "bind-mcast-address")]
fn set_bind_mcast_address(&self, bind_mcast_addr: bool) {
unsafe {
ffi::gst_rtsp_media_set_bind_mcast_address(
@ -500,6 +509,7 @@ pub trait RTSPMediaExt: IsA<RTSPMedia> + sealed::Sealed + 'static {
}
#[doc(alias = "gst_rtsp_media_set_buffer_size")]
#[doc(alias = "buffer-size")]
fn set_buffer_size(&self, size: u32) {
unsafe {
ffi::gst_rtsp_media_set_buffer_size(self.as_ref().to_glib_none().0, size);
@ -507,6 +517,7 @@ pub trait RTSPMediaExt: IsA<RTSPMedia> + sealed::Sealed + 'static {
}
#[doc(alias = "gst_rtsp_media_set_clock")]
#[doc(alias = "clock")]
fn set_clock(&self, clock: Option<&impl IsA<gst::Clock>>) {
unsafe {
ffi::gst_rtsp_media_set_clock(
@ -531,6 +542,7 @@ pub trait RTSPMediaExt: IsA<RTSPMedia> + sealed::Sealed + 'static {
#[cfg(feature = "v1_18")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
#[doc(alias = "gst_rtsp_media_set_dscp_qos")]
#[doc(alias = "dscp-qos")]
fn set_dscp_qos(&self, dscp_qos: i32) {
unsafe {
ffi::gst_rtsp_media_set_dscp_qos(self.as_ref().to_glib_none().0, dscp_qos);
@ -540,6 +552,7 @@ pub trait RTSPMediaExt: IsA<RTSPMedia> + sealed::Sealed + 'static {
#[cfg(feature = "v1_24")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
#[doc(alias = "gst_rtsp_media_set_ensure_keyunit_on_start")]
#[doc(alias = "ensure-keyunit-on-start")]
fn set_ensure_keyunit_on_start(&self, ensure_keyunit_on_start: bool) {
unsafe {
ffi::gst_rtsp_media_set_ensure_keyunit_on_start(
@ -552,6 +565,7 @@ pub trait RTSPMediaExt: IsA<RTSPMedia> + sealed::Sealed + 'static {
#[cfg(feature = "v1_24")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
#[doc(alias = "gst_rtsp_media_set_ensure_keyunit_on_start_timeout")]
#[doc(alias = "ensure-keyunit-on-start-timeout")]
fn set_ensure_keyunit_on_start_timeout(&self, timeout: u32) {
unsafe {
ffi::gst_rtsp_media_set_ensure_keyunit_on_start_timeout(
@ -562,6 +576,7 @@ pub trait RTSPMediaExt: IsA<RTSPMedia> + sealed::Sealed + 'static {
}
#[doc(alias = "gst_rtsp_media_set_eos_shutdown")]
#[doc(alias = "eos-shutdown")]
fn set_eos_shutdown(&self, eos_shutdown: bool) {
unsafe {
ffi::gst_rtsp_media_set_eos_shutdown(
@ -572,6 +587,7 @@ pub trait RTSPMediaExt: IsA<RTSPMedia> + sealed::Sealed + 'static {
}
#[doc(alias = "gst_rtsp_media_set_latency")]
#[doc(alias = "latency")]
fn set_latency(&self, latency: u32) {
unsafe {
ffi::gst_rtsp_media_set_latency(self.as_ref().to_glib_none().0, latency);
@ -581,6 +597,7 @@ pub trait RTSPMediaExt: IsA<RTSPMedia> + sealed::Sealed + 'static {
#[cfg(feature = "v1_16")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
#[doc(alias = "gst_rtsp_media_set_max_mcast_ttl")]
#[doc(alias = "max-mcast-ttl")]
fn set_max_mcast_ttl(&self, ttl: u32) -> bool {
unsafe {
from_glib(ffi::gst_rtsp_media_set_max_mcast_ttl(
@ -616,6 +633,7 @@ pub trait RTSPMediaExt: IsA<RTSPMedia> + sealed::Sealed + 'static {
}
#[doc(alias = "gst_rtsp_media_set_profiles")]
#[doc(alias = "profiles")]
fn set_profiles(&self, profiles: gst_rtsp::RTSPProfile) {
unsafe {
ffi::gst_rtsp_media_set_profiles(self.as_ref().to_glib_none().0, profiles.into_glib());
@ -623,6 +641,7 @@ pub trait RTSPMediaExt: IsA<RTSPMedia> + sealed::Sealed + 'static {
}
#[doc(alias = "gst_rtsp_media_set_protocols")]
#[doc(alias = "protocols")]
fn set_protocols(&self, protocols: gst_rtsp::RTSPLowerTrans) {
unsafe {
ffi::gst_rtsp_media_set_protocols(
@ -665,6 +684,7 @@ pub trait RTSPMediaExt: IsA<RTSPMedia> + sealed::Sealed + 'static {
}
#[doc(alias = "gst_rtsp_media_set_reusable")]
#[doc(alias = "reusable")]
fn set_reusable(&self, reusable: bool) {
unsafe {
ffi::gst_rtsp_media_set_reusable(self.as_ref().to_glib_none().0, reusable.into_glib());
@ -672,6 +692,7 @@ pub trait RTSPMediaExt: IsA<RTSPMedia> + sealed::Sealed + 'static {
}
#[doc(alias = "gst_rtsp_media_set_shared")]
#[doc(alias = "shared")]
fn set_shared(&self, shared: bool) {
unsafe {
ffi::gst_rtsp_media_set_shared(self.as_ref().to_glib_none().0, shared.into_glib());
@ -690,6 +711,7 @@ pub trait RTSPMediaExt: IsA<RTSPMedia> + sealed::Sealed + 'static {
}
#[doc(alias = "gst_rtsp_media_set_stop_on_disconnect")]
#[doc(alias = "stop-on-disconnect")]
fn set_stop_on_disconnect(&self, stop_on_disconnect: bool) {
unsafe {
ffi::gst_rtsp_media_set_stop_on_disconnect(
@ -700,6 +722,7 @@ pub trait RTSPMediaExt: IsA<RTSPMedia> + sealed::Sealed + 'static {
}
#[doc(alias = "gst_rtsp_media_set_suspend_mode")]
#[doc(alias = "suspend-mode")]
fn set_suspend_mode(&self, mode: RTSPSuspendMode) {
unsafe {
ffi::gst_rtsp_media_set_suspend_mode(self.as_ref().to_glib_none().0, mode.into_glib());
@ -707,6 +730,7 @@ pub trait RTSPMediaExt: IsA<RTSPMedia> + sealed::Sealed + 'static {
}
#[doc(alias = "gst_rtsp_media_set_transport_mode")]
#[doc(alias = "transport-mode")]
fn set_transport_mode(&self, mode: RTSPTransportMode) {
unsafe {
ffi::gst_rtsp_media_set_transport_mode(
@ -775,28 +799,38 @@ pub trait RTSPMediaExt: IsA<RTSPMedia> + sealed::Sealed + 'static {
ObjectExt::property(self.as_ref(), "bind-mcast-address")
}
#[cfg(not(feature = "v1_16"))]
#[cfg_attr(docsrs, doc(cfg(not(feature = "v1_16"))))]
#[doc(alias = "bind-mcast-address")]
fn set_property_bind_mcast_address(&self, bind_mcast_address: bool) {
fn set_bind_mcast_address(&self, bind_mcast_address: bool) {
ObjectExt::set_property(self.as_ref(), "bind-mcast-address", bind_mcast_address)
}
#[cfg(not(feature = "v1_18"))]
#[cfg_attr(docsrs, doc(cfg(not(feature = "v1_18"))))]
#[doc(alias = "dscp-qos")]
fn get_property_dscp_qos(&self) -> i32 {
fn dscp_qos(&self) -> i32 {
ObjectExt::property(self.as_ref(), "dscp-qos")
}
#[cfg(not(feature = "v1_18"))]
#[cfg_attr(docsrs, doc(cfg(not(feature = "v1_18"))))]
#[doc(alias = "dscp-qos")]
fn set_property_dscp_qos(&self, dscp_qos: i32) {
fn set_dscp_qos(&self, dscp_qos: i32) {
ObjectExt::set_property(self.as_ref(), "dscp-qos", dscp_qos)
}
#[cfg(not(feature = "v1_16"))]
#[cfg_attr(docsrs, doc(cfg(not(feature = "v1_16"))))]
#[doc(alias = "max-mcast-ttl")]
fn get_property_max_mcast_ttl(&self) -> u32 {
fn max_mcast_ttl(&self) -> u32 {
ObjectExt::property(self.as_ref(), "max-mcast-ttl")
}
#[cfg(not(feature = "v1_16"))]
#[cfg_attr(docsrs, doc(cfg(not(feature = "v1_16"))))]
#[doc(alias = "max-mcast-ttl")]
fn set_property_max_mcast_ttl(&self, max_mcast_ttl: u32) {
fn set_max_mcast_ttl(&self, max_mcast_ttl: u32) {
ObjectExt::set_property(self.as_ref(), "max-mcast-ttl", max_mcast_ttl)
}

View file

@ -86,6 +86,7 @@ pub trait RTSPMediaFactoryExt: IsA<RTSPMediaFactory> + sealed::Sealed + 'static
#[doc(alias = "gst_rtsp_media_factory_get_buffer_size")]
#[doc(alias = "get_buffer_size")]
#[doc(alias = "buffer-size")]
fn buffer_size(&self) -> u32 {
unsafe { ffi::gst_rtsp_media_factory_get_buffer_size(self.as_ref().to_glib_none().0) }
}
@ -116,6 +117,7 @@ pub trait RTSPMediaFactoryExt: IsA<RTSPMediaFactory> + sealed::Sealed + 'static
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
#[doc(alias = "gst_rtsp_media_factory_get_dscp_qos")]
#[doc(alias = "get_dscp_qos")]
#[doc(alias = "dscp-qos")]
fn dscp_qos(&self) -> i32 {
unsafe { ffi::gst_rtsp_media_factory_get_dscp_qos(self.as_ref().to_glib_none().0) }
}
@ -124,6 +126,7 @@ pub trait RTSPMediaFactoryExt: IsA<RTSPMediaFactory> + sealed::Sealed + 'static
#[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
#[doc(alias = "gst_rtsp_media_factory_get_ensure_keyunit_on_start")]
#[doc(alias = "get_ensure_keyunit_on_start")]
#[doc(alias = "ensure-keyunit-on-start")]
fn is_ensure_keyunit_on_start(&self) -> bool {
unsafe {
from_glib(ffi::gst_rtsp_media_factory_get_ensure_keyunit_on_start(
@ -136,6 +139,7 @@ pub trait RTSPMediaFactoryExt: IsA<RTSPMediaFactory> + sealed::Sealed + 'static
#[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
#[doc(alias = "gst_rtsp_media_factory_get_ensure_keyunit_on_start_timeout")]
#[doc(alias = "get_ensure_keyunit_on_start_timeout")]
#[doc(alias = "ensure-keyunit-on-start-timeout")]
fn ensure_keyunit_on_start_timeout(&self) -> u32 {
unsafe {
ffi::gst_rtsp_media_factory_get_ensure_keyunit_on_start_timeout(
@ -164,6 +168,7 @@ pub trait RTSPMediaFactoryExt: IsA<RTSPMediaFactory> + sealed::Sealed + 'static
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
#[doc(alias = "gst_rtsp_media_factory_get_max_mcast_ttl")]
#[doc(alias = "get_max_mcast_ttl")]
#[doc(alias = "max-mcast-ttl")]
fn max_mcast_ttl(&self) -> u32 {
unsafe { ffi::gst_rtsp_media_factory_get_max_mcast_ttl(self.as_ref().to_glib_none().0) }
}
@ -236,6 +241,7 @@ pub trait RTSPMediaFactoryExt: IsA<RTSPMediaFactory> + sealed::Sealed + 'static
#[doc(alias = "gst_rtsp_media_factory_get_suspend_mode")]
#[doc(alias = "get_suspend_mode")]
#[doc(alias = "suspend-mode")]
fn suspend_mode(&self) -> RTSPSuspendMode {
unsafe {
from_glib(ffi::gst_rtsp_media_factory_get_suspend_mode(
@ -246,6 +252,7 @@ pub trait RTSPMediaFactoryExt: IsA<RTSPMediaFactory> + sealed::Sealed + 'static
#[doc(alias = "gst_rtsp_media_factory_get_transport_mode")]
#[doc(alias = "get_transport_mode")]
#[doc(alias = "transport-mode")]
fn transport_mode(&self) -> RTSPTransportMode {
unsafe {
from_glib(ffi::gst_rtsp_media_factory_get_transport_mode(
@ -316,6 +323,7 @@ pub trait RTSPMediaFactoryExt: IsA<RTSPMediaFactory> + sealed::Sealed + 'static
#[cfg(feature = "v1_16")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
#[doc(alias = "gst_rtsp_media_factory_set_bind_mcast_address")]
#[doc(alias = "bind-mcast-address")]
fn set_bind_mcast_address(&self, bind_mcast_addr: bool) {
unsafe {
ffi::gst_rtsp_media_factory_set_bind_mcast_address(
@ -326,6 +334,7 @@ pub trait RTSPMediaFactoryExt: IsA<RTSPMediaFactory> + sealed::Sealed + 'static
}
#[doc(alias = "gst_rtsp_media_factory_set_buffer_size")]
#[doc(alias = "buffer-size")]
fn set_buffer_size(&self, size: u32) {
unsafe {
ffi::gst_rtsp_media_factory_set_buffer_size(self.as_ref().to_glib_none().0, size);
@ -333,6 +342,7 @@ pub trait RTSPMediaFactoryExt: IsA<RTSPMediaFactory> + sealed::Sealed + 'static
}
#[doc(alias = "gst_rtsp_media_factory_set_clock")]
#[doc(alias = "clock")]
fn set_clock(&self, clock: Option<&impl IsA<gst::Clock>>) {
unsafe {
ffi::gst_rtsp_media_factory_set_clock(
@ -357,6 +367,7 @@ pub trait RTSPMediaFactoryExt: IsA<RTSPMediaFactory> + sealed::Sealed + 'static
#[cfg(feature = "v1_18")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
#[doc(alias = "gst_rtsp_media_factory_set_dscp_qos")]
#[doc(alias = "dscp-qos")]
fn set_dscp_qos(&self, dscp_qos: i32) {
unsafe {
ffi::gst_rtsp_media_factory_set_dscp_qos(self.as_ref().to_glib_none().0, dscp_qos);
@ -366,6 +377,7 @@ pub trait RTSPMediaFactoryExt: IsA<RTSPMediaFactory> + sealed::Sealed + 'static
#[cfg(feature = "v1_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
#[doc(alias = "gst_rtsp_media_factory_set_enable_rtcp")]
#[doc(alias = "enable-rtcp")]
fn set_enable_rtcp(&self, enable: bool) {
unsafe {
ffi::gst_rtsp_media_factory_set_enable_rtcp(
@ -378,6 +390,7 @@ pub trait RTSPMediaFactoryExt: IsA<RTSPMediaFactory> + sealed::Sealed + 'static
#[cfg(feature = "v1_24")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
#[doc(alias = "gst_rtsp_media_factory_set_ensure_keyunit_on_start")]
#[doc(alias = "ensure-keyunit-on-start")]
fn set_ensure_keyunit_on_start(&self, ensure_keyunit_on_start: bool) {
unsafe {
ffi::gst_rtsp_media_factory_set_ensure_keyunit_on_start(
@ -390,6 +403,7 @@ pub trait RTSPMediaFactoryExt: IsA<RTSPMediaFactory> + sealed::Sealed + 'static
#[cfg(feature = "v1_24")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
#[doc(alias = "gst_rtsp_media_factory_set_ensure_keyunit_on_start_timeout")]
#[doc(alias = "ensure-keyunit-on-start-timeout")]
fn set_ensure_keyunit_on_start_timeout(&self, timeout: u32) {
unsafe {
ffi::gst_rtsp_media_factory_set_ensure_keyunit_on_start_timeout(
@ -400,6 +414,7 @@ pub trait RTSPMediaFactoryExt: IsA<RTSPMediaFactory> + sealed::Sealed + 'static
}
#[doc(alias = "gst_rtsp_media_factory_set_eos_shutdown")]
#[doc(alias = "eos-shutdown")]
fn set_eos_shutdown(&self, eos_shutdown: bool) {
unsafe {
ffi::gst_rtsp_media_factory_set_eos_shutdown(
@ -410,6 +425,7 @@ pub trait RTSPMediaFactoryExt: IsA<RTSPMediaFactory> + sealed::Sealed + 'static
}
#[doc(alias = "gst_rtsp_media_factory_set_latency")]
#[doc(alias = "latency")]
fn set_latency(&self, latency: u32) {
unsafe {
ffi::gst_rtsp_media_factory_set_latency(self.as_ref().to_glib_none().0, latency);
@ -417,6 +433,7 @@ pub trait RTSPMediaFactoryExt: IsA<RTSPMediaFactory> + sealed::Sealed + 'static
}
#[doc(alias = "gst_rtsp_media_factory_set_launch")]
#[doc(alias = "launch")]
fn set_launch(&self, launch: &str) {
unsafe {
ffi::gst_rtsp_media_factory_set_launch(
@ -429,6 +446,7 @@ pub trait RTSPMediaFactoryExt: IsA<RTSPMediaFactory> + sealed::Sealed + 'static
#[cfg(feature = "v1_16")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
#[doc(alias = "gst_rtsp_media_factory_set_max_mcast_ttl")]
#[doc(alias = "max-mcast-ttl")]
fn set_max_mcast_ttl(&self, ttl: u32) -> bool {
unsafe {
from_glib(ffi::gst_rtsp_media_factory_set_max_mcast_ttl(
@ -464,6 +482,7 @@ pub trait RTSPMediaFactoryExt: IsA<RTSPMediaFactory> + sealed::Sealed + 'static
//}
#[doc(alias = "gst_rtsp_media_factory_set_profiles")]
#[doc(alias = "profiles")]
fn set_profiles(&self, profiles: gst_rtsp::RTSPProfile) {
unsafe {
ffi::gst_rtsp_media_factory_set_profiles(
@ -474,6 +493,7 @@ pub trait RTSPMediaFactoryExt: IsA<RTSPMediaFactory> + sealed::Sealed + 'static
}
#[doc(alias = "gst_rtsp_media_factory_set_protocols")]
#[doc(alias = "protocols")]
fn set_protocols(&self, protocols: gst_rtsp::RTSPLowerTrans) {
unsafe {
ffi::gst_rtsp_media_factory_set_protocols(
@ -504,6 +524,7 @@ pub trait RTSPMediaFactoryExt: IsA<RTSPMediaFactory> + sealed::Sealed + 'static
}
#[doc(alias = "gst_rtsp_media_factory_set_shared")]
#[doc(alias = "shared")]
fn set_shared(&self, shared: bool) {
unsafe {
ffi::gst_rtsp_media_factory_set_shared(
@ -514,6 +535,7 @@ pub trait RTSPMediaFactoryExt: IsA<RTSPMediaFactory> + sealed::Sealed + 'static
}
#[doc(alias = "gst_rtsp_media_factory_set_stop_on_disconnect")]
#[doc(alias = "stop-on-disconnect")]
fn set_stop_on_disconnect(&self, stop_on_disconnect: bool) {
unsafe {
ffi::gst_rtsp_media_factory_set_stop_on_disconnect(
@ -524,6 +546,7 @@ pub trait RTSPMediaFactoryExt: IsA<RTSPMediaFactory> + sealed::Sealed + 'static
}
#[doc(alias = "gst_rtsp_media_factory_set_suspend_mode")]
#[doc(alias = "suspend-mode")]
fn set_suspend_mode(&self, mode: RTSPSuspendMode) {
unsafe {
ffi::gst_rtsp_media_factory_set_suspend_mode(
@ -534,6 +557,7 @@ pub trait RTSPMediaFactoryExt: IsA<RTSPMediaFactory> + sealed::Sealed + 'static
}
#[doc(alias = "gst_rtsp_media_factory_set_transport_mode")]
#[doc(alias = "transport-mode")]
fn set_transport_mode(&self, mode: RTSPTransportMode) {
unsafe {
ffi::gst_rtsp_media_factory_set_transport_mode(
@ -548,28 +572,38 @@ pub trait RTSPMediaFactoryExt: IsA<RTSPMediaFactory> + sealed::Sealed + 'static
ObjectExt::property(self.as_ref(), "bind-mcast-address")
}
#[cfg(not(feature = "v1_16"))]
#[cfg_attr(docsrs, doc(cfg(not(feature = "v1_16"))))]
#[doc(alias = "bind-mcast-address")]
fn set_property_bind_mcast_address(&self, bind_mcast_address: bool) {
fn set_bind_mcast_address(&self, bind_mcast_address: bool) {
ObjectExt::set_property(self.as_ref(), "bind-mcast-address", bind_mcast_address)
}
#[cfg(not(feature = "v1_18"))]
#[cfg_attr(docsrs, doc(cfg(not(feature = "v1_18"))))]
#[doc(alias = "dscp-qos")]
fn get_property_dscp_qos(&self) -> i32 {
fn dscp_qos(&self) -> i32 {
ObjectExt::property(self.as_ref(), "dscp-qos")
}
#[cfg(not(feature = "v1_18"))]
#[cfg_attr(docsrs, doc(cfg(not(feature = "v1_18"))))]
#[doc(alias = "dscp-qos")]
fn set_property_dscp_qos(&self, dscp_qos: i32) {
fn set_dscp_qos(&self, dscp_qos: i32) {
ObjectExt::set_property(self.as_ref(), "dscp-qos", dscp_qos)
}
#[cfg(not(feature = "v1_16"))]
#[cfg_attr(docsrs, doc(cfg(not(feature = "v1_16"))))]
#[doc(alias = "max-mcast-ttl")]
fn get_property_max_mcast_ttl(&self) -> u32 {
fn max_mcast_ttl(&self) -> u32 {
ObjectExt::property(self.as_ref(), "max-mcast-ttl")
}
#[cfg(not(feature = "v1_16"))]
#[cfg_attr(docsrs, doc(cfg(not(feature = "v1_16"))))]
#[doc(alias = "max-mcast-ttl")]
fn set_property_max_mcast_ttl(&self, max_mcast_ttl: u32) {
fn set_max_mcast_ttl(&self, max_mcast_ttl: u32) {
ObjectExt::set_property(self.as_ref(), "max-mcast-ttl", max_mcast_ttl)
}

View file

@ -56,6 +56,7 @@ pub trait RTSPMediaFactoryURIExt: IsA<RTSPMediaFactoryURI> + sealed::Sealed + 's
}
#[doc(alias = "gst_rtsp_media_factory_uri_set_uri")]
#[doc(alias = "uri")]
fn set_uri(&self, uri: &str) {
unsafe {
ffi::gst_rtsp_media_factory_uri_set_uri(

View file

@ -174,6 +174,7 @@ pub trait RTSPServerExt: IsA<RTSPServer> + sealed::Sealed + 'static {
#[doc(alias = "gst_rtsp_server_get_bound_port")]
#[doc(alias = "get_bound_port")]
#[doc(alias = "bound-port")]
fn bound_port(&self) -> i32 {
unsafe { ffi::gst_rtsp_server_get_bound_port(self.as_ref().to_glib_none().0) }
}
@ -182,12 +183,14 @@ pub trait RTSPServerExt: IsA<RTSPServer> + sealed::Sealed + 'static {
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
#[doc(alias = "gst_rtsp_server_get_content_length_limit")]
#[doc(alias = "get_content_length_limit")]
#[doc(alias = "content-length-limit")]
fn content_length_limit(&self) -> u32 {
unsafe { ffi::gst_rtsp_server_get_content_length_limit(self.as_ref().to_glib_none().0) }
}
#[doc(alias = "gst_rtsp_server_get_mount_points")]
#[doc(alias = "get_mount_points")]
#[doc(alias = "mount-points")]
fn mount_points(&self) -> Option<RTSPMountPoints> {
unsafe {
from_glib_full(ffi::gst_rtsp_server_get_mount_points(
@ -208,6 +211,7 @@ pub trait RTSPServerExt: IsA<RTSPServer> + sealed::Sealed + 'static {
#[doc(alias = "gst_rtsp_server_get_session_pool")]
#[doc(alias = "get_session_pool")]
#[doc(alias = "session-pool")]
fn session_pool(&self) -> Option<RTSPSessionPool> {
unsafe {
from_glib_full(ffi::gst_rtsp_server_get_session_pool(
@ -227,6 +231,7 @@ pub trait RTSPServerExt: IsA<RTSPServer> + sealed::Sealed + 'static {
}
#[doc(alias = "gst_rtsp_server_set_address")]
#[doc(alias = "address")]
fn set_address(&self, address: &str) {
unsafe {
ffi::gst_rtsp_server_set_address(
@ -247,6 +252,7 @@ pub trait RTSPServerExt: IsA<RTSPServer> + sealed::Sealed + 'static {
}
#[doc(alias = "gst_rtsp_server_set_backlog")]
#[doc(alias = "backlog")]
fn set_backlog(&self, backlog: i32) {
unsafe {
ffi::gst_rtsp_server_set_backlog(self.as_ref().to_glib_none().0, backlog);
@ -256,6 +262,7 @@ pub trait RTSPServerExt: IsA<RTSPServer> + sealed::Sealed + 'static {
#[cfg(feature = "v1_18")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
#[doc(alias = "gst_rtsp_server_set_content_length_limit")]
#[doc(alias = "content-length-limit")]
fn set_content_length_limit(&self, limit: u32) {
unsafe {
ffi::gst_rtsp_server_set_content_length_limit(self.as_ref().to_glib_none().0, limit);
@ -263,6 +270,7 @@ pub trait RTSPServerExt: IsA<RTSPServer> + sealed::Sealed + 'static {
}
#[doc(alias = "gst_rtsp_server_set_mount_points")]
#[doc(alias = "mount-points")]
fn set_mount_points(&self, mounts: Option<&impl IsA<RTSPMountPoints>>) {
unsafe {
ffi::gst_rtsp_server_set_mount_points(
@ -273,6 +281,7 @@ pub trait RTSPServerExt: IsA<RTSPServer> + sealed::Sealed + 'static {
}
#[doc(alias = "gst_rtsp_server_set_service")]
#[doc(alias = "service")]
fn set_service(&self, service: &str) {
unsafe {
ffi::gst_rtsp_server_set_service(
@ -283,6 +292,7 @@ pub trait RTSPServerExt: IsA<RTSPServer> + sealed::Sealed + 'static {
}
#[doc(alias = "gst_rtsp_server_set_session_pool")]
#[doc(alias = "session-pool")]
fn set_session_pool(&self, pool: Option<&impl IsA<RTSPSessionPool>>) {
unsafe {
ffi::gst_rtsp_server_set_session_pool(
@ -324,13 +334,17 @@ pub trait RTSPServerExt: IsA<RTSPServer> + sealed::Sealed + 'static {
}
}
#[cfg(not(feature = "v1_18"))]
#[cfg_attr(docsrs, doc(cfg(not(feature = "v1_18"))))]
#[doc(alias = "content-length-limit")]
fn get_property_content_length_limit(&self) -> u32 {
fn content_length_limit(&self) -> u32 {
ObjectExt::property(self.as_ref(), "content-length-limit")
}
#[cfg(not(feature = "v1_18"))]
#[cfg_attr(docsrs, doc(cfg(not(feature = "v1_18"))))]
#[doc(alias = "content-length-limit")]
fn set_property_content_length_limit(&self, content_length_limit: u32) {
fn set_content_length_limit(&self, content_length_limit: u32) {
ObjectExt::set_property(self.as_ref(), "content-length-limit", content_length_limit)
}

View file

@ -169,6 +169,7 @@ pub trait RTSPSessionExt: IsA<RTSPSession> + sealed::Sealed + 'static {
}
#[doc(alias = "gst_rtsp_session_set_timeout")]
#[doc(alias = "timeout")]
fn set_timeout(&self, timeout: u32) {
unsafe {
ffi::gst_rtsp_session_set_timeout(self.as_ref().to_glib_none().0, timeout);

View file

@ -115,6 +115,7 @@ pub trait RTSPSessionPoolExt: IsA<RTSPSessionPool> + sealed::Sealed + 'static {
#[doc(alias = "gst_rtsp_session_pool_get_max_sessions")]
#[doc(alias = "get_max_sessions")]
#[doc(alias = "max-sessions")]
fn max_sessions(&self) -> u32 {
unsafe { ffi::gst_rtsp_session_pool_get_max_sessions(self.as_ref().to_glib_none().0) }
}
@ -139,6 +140,7 @@ pub trait RTSPSessionPoolExt: IsA<RTSPSessionPool> + sealed::Sealed + 'static {
}
#[doc(alias = "gst_rtsp_session_pool_set_max_sessions")]
#[doc(alias = "max-sessions")]
fn set_max_sessions(&self, max: u32) {
unsafe {
ffi::gst_rtsp_session_pool_set_max_sessions(self.as_ref().to_glib_none().0, max);

View file

@ -737,6 +737,7 @@ pub trait RTSPStreamExt: IsA<RTSPStream> + sealed::Sealed + 'static {
}
#[doc(alias = "gst_rtsp_stream_set_control")]
#[doc(alias = "control")]
fn set_control(&self, control: Option<&str>) {
unsafe {
ffi::gst_rtsp_stream_set_control(
@ -783,6 +784,7 @@ pub trait RTSPStreamExt: IsA<RTSPStream> + sealed::Sealed + 'static {
}
#[doc(alias = "gst_rtsp_stream_set_profiles")]
#[doc(alias = "profiles")]
fn set_profiles(&self, profiles: gst_rtsp::RTSPProfile) {
unsafe {
ffi::gst_rtsp_stream_set_profiles(self.as_ref().to_glib_none().0, profiles.into_glib());
@ -790,6 +792,7 @@ pub trait RTSPStreamExt: IsA<RTSPStream> + sealed::Sealed + 'static {
}
#[doc(alias = "gst_rtsp_stream_set_protocols")]
#[doc(alias = "protocols")]
fn set_protocols(&self, protocols: gst_rtsp::RTSPLowerTrans) {
unsafe {
ffi::gst_rtsp_stream_set_protocols(

View file

@ -55,6 +55,7 @@ mod sealed {
pub trait RTSPThreadPoolExt: IsA<RTSPThreadPool> + sealed::Sealed + 'static {
#[doc(alias = "gst_rtsp_thread_pool_get_max_threads")]
#[doc(alias = "get_max_threads")]
#[doc(alias = "max-threads")]
fn max_threads(&self) -> i32 {
unsafe { ffi::gst_rtsp_thread_pool_get_max_threads(self.as_ref().to_glib_none().0) }
}
@ -72,6 +73,7 @@ pub trait RTSPThreadPoolExt: IsA<RTSPThreadPool> + sealed::Sealed + 'static {
}
#[doc(alias = "gst_rtsp_thread_pool_set_max_threads")]
#[doc(alias = "max-threads")]
fn set_max_threads(&self, max_threads: i32) {
unsafe {
ffi::gst_rtsp_thread_pool_set_max_threads(self.as_ref().to_glib_none().0, max_threads);

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 6a8847ce15a5)
Generated by gir (https://github.com/gtk-rs/gir @ 5f72cf0d9b99)
from gir-files (https://github.com/gtk-rs/gir-files @ 6cd7b656acd6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ c988e03b5e99)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 6a8847ce15a5)
Generated by gir (https://github.com/gtk-rs/gir @ 5f72cf0d9b99)
from gir-files (https://github.com/gtk-rs/gir-files @ 6cd7b656acd6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ c988e03b5e99)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 6a8847ce15a5)
Generated by gir (https://github.com/gtk-rs/gir @ 5f72cf0d9b99)
from gir-files (https://github.com/gtk-rs/gir-files @ 6cd7b656acd6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ c988e03b5e99)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 6a8847ce15a5)
Generated by gir (https://github.com/gtk-rs/gir @ 5f72cf0d9b99)
from gir-files (https://github.com/gtk-rs/gir-files @ 6cd7b656acd6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ c988e03b5e99)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 6a8847ce15a5)
Generated by gir (https://github.com/gtk-rs/gir @ 5f72cf0d9b99)
from gir-files (https://github.com/gtk-rs/gir-files @ 6cd7b656acd6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ c988e03b5e99)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 6a8847ce15a5)
Generated by gir (https://github.com/gtk-rs/gir @ 5f72cf0d9b99)
from gir-files (https://github.com/gtk-rs/gir-files @ 6cd7b656acd6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ c988e03b5e99)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 6a8847ce15a5)
Generated by gir (https://github.com/gtk-rs/gir @ 5f72cf0d9b99)
from gir-files (https://github.com/gtk-rs/gir-files @ 6cd7b656acd6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ c988e03b5e99)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 6a8847ce15a5)
Generated by gir (https://github.com/gtk-rs/gir @ 5f72cf0d9b99)
from gir-files (https://github.com/gtk-rs/gir-files @ 6cd7b656acd6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ c988e03b5e99)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 6a8847ce15a5)
Generated by gir (https://github.com/gtk-rs/gir @ 5f72cf0d9b99)
from gir-files (https://github.com/gtk-rs/gir-files @ 6cd7b656acd6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ c988e03b5e99)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 6a8847ce15a5)
Generated by gir (https://github.com/gtk-rs/gir @ 5f72cf0d9b99)
from gir-files (https://github.com/gtk-rs/gir-files @ 6cd7b656acd6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ c988e03b5e99)

View file

@ -127,6 +127,7 @@ pub trait VideoDecoderExt: IsA<VideoDecoder> + sealed::Sealed + 'static {
#[doc(alias = "gst_video_decoder_get_max_errors")]
#[doc(alias = "get_max_errors")]
#[doc(alias = "max-errors")]
fn max_errors(&self) -> i32 {
unsafe { ffi::gst_video_decoder_get_max_errors(self.as_ref().to_glib_none().0) }
}
@ -271,6 +272,7 @@ pub trait VideoDecoderExt: IsA<VideoDecoder> + sealed::Sealed + 'static {
}
#[doc(alias = "gst_video_decoder_set_max_errors")]
#[doc(alias = "max-errors")]
fn set_max_errors(&self, num: i32) {
unsafe {
ffi::gst_video_decoder_set_max_errors(self.as_ref().to_glib_none().0, num);

View file

@ -68,6 +68,7 @@ pub trait VideoEncoderExt: IsA<VideoEncoder> + sealed::Sealed + 'static {
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
#[doc(alias = "gst_video_encoder_get_min_force_key_unit_interval")]
#[doc(alias = "get_min_force_key_unit_interval")]
#[doc(alias = "min-force-key-unit-interval")]
fn min_force_key_unit_interval(&self) -> Option<gst::ClockTime> {
unsafe {
from_glib(ffi::gst_video_encoder_get_min_force_key_unit_interval(
@ -110,6 +111,7 @@ pub trait VideoEncoderExt: IsA<VideoEncoder> + sealed::Sealed + 'static {
#[cfg(feature = "v1_18")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
#[doc(alias = "gst_video_encoder_set_min_force_key_unit_interval")]
#[doc(alias = "min-force-key-unit-interval")]
fn set_min_force_key_unit_interval(&self, interval: impl Into<Option<gst::ClockTime>>) {
unsafe {
ffi::gst_video_encoder_set_min_force_key_unit_interval(

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 6a8847ce15a5)
Generated by gir (https://github.com/gtk-rs/gir @ 5f72cf0d9b99)
from gir-files (https://github.com/gtk-rs/gir-files @ 6cd7b656acd6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ c988e03b5e99)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 6a8847ce15a5)
Generated by gir (https://github.com/gtk-rs/gir @ 5f72cf0d9b99)
from gir-files (https://github.com/gtk-rs/gir-files @ 6cd7b656acd6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ c988e03b5e99)

View file

@ -31,6 +31,7 @@ impl WebRTCRTPSender {
#[cfg(feature = "v1_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
#[doc(alias = "gst_webrtc_rtp_sender_set_priority")]
#[doc(alias = "priority")]
pub fn set_priority(&self, priority: WebRTCPriorityType) {
unsafe {
ffi::gst_webrtc_rtp_sender_set_priority(self.to_glib_none().0, priority.into_glib());

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 6a8847ce15a5)
Generated by gir (https://github.com/gtk-rs/gir @ 5f72cf0d9b99)
from gir-files (https://github.com/gtk-rs/gir-files @ 6cd7b656acd6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ c988e03b5e99)

View file

@ -267,6 +267,7 @@ pub trait ClockExt: IsA<Clock> + sealed::Sealed + 'static {
}
#[doc(alias = "gst_clock_set_timeout")]
#[doc(alias = "timeout")]
fn set_timeout(&self, timeout: impl Into<Option<ClockTime>>) {
unsafe {
ffi::gst_clock_set_timeout(self.as_ref().to_glib_none().0, timeout.into().into_glib());

View file

@ -52,6 +52,7 @@ pub trait DeviceExt: IsA<Device> + sealed::Sealed + 'static {
#[doc(alias = "gst_device_get_device_class")]
#[doc(alias = "get_device_class")]
#[doc(alias = "device-class")]
fn device_class(&self) -> glib::GString {
unsafe {
from_glib_full(ffi::gst_device_get_device_class(
@ -62,6 +63,7 @@ pub trait DeviceExt: IsA<Device> + sealed::Sealed + 'static {
#[doc(alias = "gst_device_get_display_name")]
#[doc(alias = "get_display_name")]
#[doc(alias = "display-name")]
fn display_name(&self) -> glib::GString {
unsafe {
from_glib_full(ffi::gst_device_get_display_name(

View file

@ -235,6 +235,7 @@ pub trait GstObjectExt: IsA<Object> + sealed::Sealed + 'static {
}
#[doc(alias = "gst_object_set_parent")]
#[doc(alias = "parent")]
fn set_parent(&self, parent: &impl IsA<Object>) -> Result<(), glib::error::BoolError> {
unsafe {
glib::result_from_gboolean!(

View file

@ -449,6 +449,7 @@ pub trait PadExt: IsA<Pad> + sealed::Sealed + 'static {
//}
#[doc(alias = "gst_pad_set_offset")]
#[doc(alias = "offset")]
fn set_offset(&self, offset: i64) {
unsafe {
ffi::gst_pad_set_offset(self.as_ref().to_glib_none().0, offset);

View file

@ -42,6 +42,7 @@ pub trait PipelineExt: IsA<Pipeline> + sealed::Sealed + 'static {
#[doc(alias = "gst_pipeline_get_auto_flush_bus")]
#[doc(alias = "get_auto_flush_bus")]
#[doc(alias = "auto-flush-bus")]
fn is_auto_flush_bus(&self) -> bool {
unsafe {
from_glib(ffi::gst_pipeline_get_auto_flush_bus(
@ -99,6 +100,7 @@ pub trait PipelineExt: IsA<Pipeline> + sealed::Sealed + 'static {
}
#[doc(alias = "gst_pipeline_set_auto_flush_bus")]
#[doc(alias = "auto-flush-bus")]
fn set_auto_flush_bus(&self, auto_flush: bool) {
unsafe {
ffi::gst_pipeline_set_auto_flush_bus(
@ -109,6 +111,7 @@ pub trait PipelineExt: IsA<Pipeline> + sealed::Sealed + 'static {
}
#[doc(alias = "gst_pipeline_set_delay")]
#[doc(alias = "delay")]
fn set_delay(&self, delay: ClockTime) {
unsafe {
ffi::gst_pipeline_set_delay(self.as_ref().to_glib_none().0, delay.into_glib());
@ -116,6 +119,7 @@ pub trait PipelineExt: IsA<Pipeline> + sealed::Sealed + 'static {
}
#[doc(alias = "gst_pipeline_set_latency")]
#[doc(alias = "latency")]
fn set_latency(&self, latency: impl Into<Option<ClockTime>>) {
unsafe {
ffi::gst_pipeline_set_latency(

View file

@ -47,18 +47,21 @@ impl Stream {
#[doc(alias = "gst_stream_get_stream_flags")]
#[doc(alias = "get_stream_flags")]
#[doc(alias = "stream-flags")]
pub fn stream_flags(&self) -> StreamFlags {
unsafe { from_glib(ffi::gst_stream_get_stream_flags(self.to_glib_none().0)) }
}
#[doc(alias = "gst_stream_get_stream_id")]
#[doc(alias = "get_stream_id")]
#[doc(alias = "stream-id")]
pub fn stream_id(&self) -> Option<glib::GString> {
unsafe { from_glib_none(ffi::gst_stream_get_stream_id(self.to_glib_none().0)) }
}
#[doc(alias = "gst_stream_get_stream_type")]
#[doc(alias = "get_stream_type")]
#[doc(alias = "stream-type")]
pub fn stream_type(&self) -> StreamType {
unsafe { from_glib(ffi::gst_stream_get_stream_type(self.to_glib_none().0)) }
}
@ -70,6 +73,7 @@ impl Stream {
}
#[doc(alias = "gst_stream_set_caps")]
#[doc(alias = "caps")]
pub fn set_caps(&self, caps: Option<&Caps>) {
unsafe {
ffi::gst_stream_set_caps(self.to_glib_none().0, caps.to_glib_none().0);
@ -77,6 +81,7 @@ impl Stream {
}
#[doc(alias = "gst_stream_set_stream_flags")]
#[doc(alias = "stream-flags")]
pub fn set_stream_flags(&self, flags: StreamFlags) {
unsafe {
ffi::gst_stream_set_stream_flags(self.to_glib_none().0, flags.into_glib());
@ -84,6 +89,7 @@ impl Stream {
}
#[doc(alias = "gst_stream_set_stream_type")]
#[doc(alias = "stream-type")]
pub fn set_stream_type(&self, stream_type: StreamType) {
unsafe {
ffi::gst_stream_set_stream_type(self.to_glib_none().0, stream_type.into_glib());
@ -91,6 +97,7 @@ impl Stream {
}
#[doc(alias = "gst_stream_set_tags")]
#[doc(alias = "tags")]
pub fn set_tags(&self, tags: Option<&TagList>) {
unsafe {
ffi::gst_stream_set_tags(self.to_glib_none().0, tags.to_glib_none().0);

View file

@ -35,6 +35,7 @@ impl StreamCollection {
#[doc(alias = "gst_stream_collection_get_upstream_id")]
#[doc(alias = "get_upstream_id")]
#[doc(alias = "upstream-id")]
pub fn upstream_id(&self) -> Option<glib::GString> {
unsafe {
from_glib_none(ffi::gst_stream_collection_get_upstream_id(

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 6a8847ce15a5)
Generated by gir (https://github.com/gtk-rs/gir @ 5f72cf0d9b99)
from gir-files (https://github.com/gtk-rs/gir-files @ 6cd7b656acd6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ c988e03b5e99)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 6a8847ce15a5)
Generated by gir (https://github.com/gtk-rs/gir @ 5f72cf0d9b99)
from gir-files (https://github.com/gtk-rs/gir-files @ 6cd7b656acd6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ c988e03b5e99)