diff --git a/gstreamer-app/src/auto/versions.txt b/gstreamer-app/src/auto/versions.txt index 75e89a5e7..4cb9e90ba 100644 --- a/gstreamer-app/src/auto/versions.txt +++ b/gstreamer-app/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 9eab494) +Generated by gir (https://github.com/gtk-rs/gir @ bec7561) from gir-files (https://github.com/gtk-rs/gir-files @ ???) diff --git a/gstreamer-audio/src/auto/versions.txt b/gstreamer-audio/src/auto/versions.txt index 75e89a5e7..4cb9e90ba 100644 --- a/gstreamer-audio/src/auto/versions.txt +++ b/gstreamer-audio/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 9eab494) +Generated by gir (https://github.com/gtk-rs/gir @ bec7561) from gir-files (https://github.com/gtk-rs/gir-files @ ???) diff --git a/gstreamer-base/src/auto/versions.txt b/gstreamer-base/src/auto/versions.txt index 75e89a5e7..4cb9e90ba 100644 --- a/gstreamer-base/src/auto/versions.txt +++ b/gstreamer-base/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 9eab494) +Generated by gir (https://github.com/gtk-rs/gir @ bec7561) from gir-files (https://github.com/gtk-rs/gir-files @ ???) diff --git a/gstreamer-net/src/auto/versions.txt b/gstreamer-net/src/auto/versions.txt index 75e89a5e7..4cb9e90ba 100644 --- a/gstreamer-net/src/auto/versions.txt +++ b/gstreamer-net/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 9eab494) +Generated by gir (https://github.com/gtk-rs/gir @ bec7561) from gir-files (https://github.com/gtk-rs/gir-files @ ???) diff --git a/gstreamer-pbutils/src/auto/versions.txt b/gstreamer-pbutils/src/auto/versions.txt index 75e89a5e7..4cb9e90ba 100644 --- a/gstreamer-pbutils/src/auto/versions.txt +++ b/gstreamer-pbutils/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 9eab494) +Generated by gir (https://github.com/gtk-rs/gir @ bec7561) from gir-files (https://github.com/gtk-rs/gir-files @ ???) diff --git a/gstreamer-player/src/auto/enums.rs b/gstreamer-player/src/auto/enums.rs index 062e24cd8..8be7cf7bd 100644 --- a/gstreamer-player/src/auto/enums.rs +++ b/gstreamer-player/src/auto/enums.rs @@ -3,6 +3,7 @@ // DO NOT EDIT use ffi; +use glib::Quark; use glib::StaticType; use glib::Type; use glib::error::ErrorDomain; @@ -11,7 +12,6 @@ use glib::value::FromValue; use glib::value::FromValueOptional; use glib::value::SetValue; use glib::value::Value; -use glib_ffi; use gobject_ffi; #[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)] @@ -108,9 +108,9 @@ impl FromGlib for PlayerError { } impl ErrorDomain for PlayerError { - fn domain() -> glib_ffi::GQuark { + fn domain() -> Quark { skip_assert_initialized!(); - unsafe { ffi::gst_player_error_quark() } + unsafe { from_glib(ffi::gst_player_error_quark()) } } fn code(self) -> i32 { diff --git a/gstreamer-player/src/auto/versions.txt b/gstreamer-player/src/auto/versions.txt index 75e89a5e7..4cb9e90ba 100644 --- a/gstreamer-player/src/auto/versions.txt +++ b/gstreamer-player/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 9eab494) +Generated by gir (https://github.com/gtk-rs/gir @ bec7561) from gir-files (https://github.com/gtk-rs/gir-files @ ???) diff --git a/gstreamer-rtsp-server/src/auto/versions.txt b/gstreamer-rtsp-server/src/auto/versions.txt index 75e89a5e7..4cb9e90ba 100644 --- a/gstreamer-rtsp-server/src/auto/versions.txt +++ b/gstreamer-rtsp-server/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 9eab494) +Generated by gir (https://github.com/gtk-rs/gir @ bec7561) from gir-files (https://github.com/gtk-rs/gir-files @ ???) diff --git a/gstreamer-rtsp/src/auto/versions.txt b/gstreamer-rtsp/src/auto/versions.txt index 75e89a5e7..4cb9e90ba 100644 --- a/gstreamer-rtsp/src/auto/versions.txt +++ b/gstreamer-rtsp/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 9eab494) +Generated by gir (https://github.com/gtk-rs/gir @ bec7561) from gir-files (https://github.com/gtk-rs/gir-files @ ???) diff --git a/gstreamer-sdp/src/auto/versions.txt b/gstreamer-sdp/src/auto/versions.txt index 75e89a5e7..4cb9e90ba 100644 --- a/gstreamer-sdp/src/auto/versions.txt +++ b/gstreamer-sdp/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 9eab494) +Generated by gir (https://github.com/gtk-rs/gir @ bec7561) from gir-files (https://github.com/gtk-rs/gir-files @ ???) diff --git a/gstreamer-video/src/auto/versions.txt b/gstreamer-video/src/auto/versions.txt index 75e89a5e7..4cb9e90ba 100644 --- a/gstreamer-video/src/auto/versions.txt +++ b/gstreamer-video/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 9eab494) +Generated by gir (https://github.com/gtk-rs/gir @ bec7561) from gir-files (https://github.com/gtk-rs/gir-files @ ???) diff --git a/gstreamer-webrtc/src/auto/versions.txt b/gstreamer-webrtc/src/auto/versions.txt index 75e89a5e7..4cb9e90ba 100644 --- a/gstreamer-webrtc/src/auto/versions.txt +++ b/gstreamer-webrtc/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 9eab494) +Generated by gir (https://github.com/gtk-rs/gir @ bec7561) from gir-files (https://github.com/gtk-rs/gir-files @ ???) diff --git a/gstreamer/src/auto/enums.rs b/gstreamer/src/auto/enums.rs index 7f6cebc70..bd507f6ce 100644 --- a/gstreamer/src/auto/enums.rs +++ b/gstreamer/src/auto/enums.rs @@ -3,6 +3,7 @@ // DO NOT EDIT use ffi; +use glib::Quark; use glib::StaticType; use glib::Type; use glib::error::ErrorDomain; @@ -11,7 +12,6 @@ use glib::value::FromValue; use glib::value::FromValueOptional; use glib::value::SetValue; use glib::value::Value; -use glib_ffi; use gobject_ffi; #[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)] @@ -403,9 +403,9 @@ impl FromGlib for CoreError { } impl ErrorDomain for CoreError { - fn domain() -> glib_ffi::GQuark { + fn domain() -> Quark { skip_assert_initialized!(); - unsafe { ffi::gst_core_error_quark() } + unsafe { from_glib(ffi::gst_core_error_quark()) } } fn code(self) -> i32 { @@ -890,9 +890,9 @@ impl FromGlib for LibraryError { } impl ErrorDomain for LibraryError { - fn domain() -> glib_ffi::GQuark { + fn domain() -> Quark { skip_assert_initialized!(); - unsafe { ffi::gst_library_error_quark() } + unsafe { from_glib(ffi::gst_library_error_quark()) } } fn code(self) -> i32 { @@ -1309,9 +1309,9 @@ impl FromGlib for ParseError { } impl ErrorDomain for ParseError { - fn domain() -> glib_ffi::GQuark { + fn domain() -> Quark { skip_assert_initialized!(); - unsafe { ffi::gst_parse_error_quark() } + unsafe { from_glib(ffi::gst_parse_error_quark()) } } fn code(self) -> i32 { @@ -1395,9 +1395,9 @@ impl FromGlib for PluginError { } impl ErrorDomain for PluginError { - fn domain() -> glib_ffi::GQuark { + fn domain() -> Quark { skip_assert_initialized!(); - unsafe { ffi::gst_plugin_error_quark() } + unsafe { from_glib(ffi::gst_plugin_error_quark()) } } fn code(self) -> i32 { @@ -1774,9 +1774,9 @@ impl FromGlib for ResourceError { } impl ErrorDomain for ResourceError { - fn domain() -> glib_ffi::GQuark { + fn domain() -> Quark { skip_assert_initialized!(); - unsafe { ffi::gst_resource_error_quark() } + unsafe { from_glib(ffi::gst_resource_error_quark()) } } fn code(self) -> i32 { @@ -2172,9 +2172,9 @@ impl FromGlib for StreamError { } impl ErrorDomain for StreamError { - fn domain() -> glib_ffi::GQuark { + fn domain() -> Quark { skip_assert_initialized!(); - unsafe { ffi::gst_stream_error_quark() } + unsafe { from_glib(ffi::gst_stream_error_quark()) } } fn code(self) -> i32 { @@ -2792,9 +2792,9 @@ impl FromGlib for URIError { } impl ErrorDomain for URIError { - fn domain() -> glib_ffi::GQuark { + fn domain() -> Quark { skip_assert_initialized!(); - unsafe { ffi::gst_uri_error_quark() } + unsafe { from_glib(ffi::gst_uri_error_quark()) } } fn code(self) -> i32 { diff --git a/gstreamer/src/auto/versions.txt b/gstreamer/src/auto/versions.txt index 75e89a5e7..4cb9e90ba 100644 --- a/gstreamer/src/auto/versions.txt +++ b/gstreamer/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 9eab494) +Generated by gir (https://github.com/gtk-rs/gir @ bec7561) from gir-files (https://github.com/gtk-rs/gir-files @ ???) diff --git a/gstreamer/src/element.rs b/gstreamer/src/element.rs index d52646067..ec38a1cf4 100644 --- a/gstreamer/src/element.rs +++ b/gstreamer/src/element.rs @@ -268,7 +268,7 @@ impl> ElementExtManual for O { ffi::gst_element_message_full( self.to_glib_none().0, type_, - T::domain(), + T::domain().to_glib(), code.code(), message.to_glib_full(), debug.to_glib_full(), @@ -301,7 +301,7 @@ impl> ElementExtManual for O { ffi::gst_element_message_full_with_details( self.to_glib_none().0, type_, - T::domain(), + T::domain().to_glib(), code.code(), message.to_glib_full(), debug.to_glib_full(), @@ -328,7 +328,7 @@ impl> ElementExtManual for O { ffi::gst_element_message_full( self.to_glib_none().0, ffi::GST_MESSAGE_ERROR, - error_domain, + error_domain.to_glib(), error_code, message.to_glib_full(), debug.to_glib_full(), diff --git a/gstreamer/src/error.rs b/gstreamer/src/error.rs index 098714674..9130054b3 100644 --- a/gstreamer/src/error.rs +++ b/gstreamer/src/error.rs @@ -9,7 +9,7 @@ use std::error::Error; use std::fmt; -use glib_ffi; +use glib; #[macro_export] macro_rules! gst_error_msg( @@ -51,7 +51,7 @@ macro_rules! gst_error_msg( #[derive(Clone, Debug, PartialEq, Eq)] pub struct ErrorMessage { - pub(crate) error_domain: glib_ffi::GQuark, + pub(crate) error_domain: glib::Quark, pub(crate) error_code: i32, pub(crate) message: Option, pub(crate) debug: Option,