Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Zeeshan Ali
gstreamer-rs
Commits
55c8cf69
Commit
55c8cf69
authored
Dec 20, 2017
by
Sebastian Dröge
🍵
Browse files
update_registry() returning false is not an error
It means that there were no changes.
parent
e34212d5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Gir_Gst.toml
View file @
55c8cf69
...
...
@@ -765,11 +765,6 @@ trait = false
[[object]]
name
=
"Gst.*"
status
=
"generate"
[[object.function]]
name
=
"update_registry"
[object.function.return]
bool_return_is_error
=
"Failed to update registry"
[[object.function]]
name
=
"util_dump_mem"
ignore
=
true
...
...
gstreamer/src/auto/functions.rs
View file @
55c8cf69
...
...
@@ -10,7 +10,6 @@ use Error;
#[cfg(any(feature
=
"v1_12"
,
feature
=
"dox"
))]
use
StackTraceFlags
;
use
ffi
;
use
glib
;
use
glib
::
object
::
IsA
;
use
glib
::
translate
::
*
;
use
std
;
...
...
@@ -144,10 +143,10 @@ pub fn parse_launchv(argv: &[&str]) -> Result<Element, Error> {
}
}
pub
fn
update_registry
()
->
Result
<
(),
glib
::
error
::
BoolError
>
{
pub
fn
update_registry
()
->
bool
{
assert_initialized_main_thread!
();
unsafe
{
glib
::
error
::
BoolError
::
from_glib
(
ffi
::
gst_update_registry
()
,
"Failed to update registry"
)
from_glib
(
ffi
::
gst_update_registry
())
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment