mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-01-31 21:22:22 +00:00
Fix some clippy warnings
This commit is contained in:
parent
7b5764e759
commit
9e59eff973
2 changed files with 5 additions and 5 deletions
|
@ -210,6 +210,10 @@ impl StreamCollection {
|
|||
unsafe { gst_stream_collection_get_size(self.0) }
|
||||
}
|
||||
|
||||
pub fn empty(&self) -> bool {
|
||||
self.len() == 0
|
||||
}
|
||||
|
||||
pub fn get_upstream_id(&self) -> &str {
|
||||
extern "C" {
|
||||
fn gst_stream_collection_get_upstream_id(collection: *mut c_void) -> *mut c_char;
|
||||
|
|
|
@ -196,11 +196,7 @@ impl Value {
|
|||
|
||||
match gvalue.typ {
|
||||
TYPE_BOOLEAN => unsafe {
|
||||
Some(Value::Bool(if g_value_get_boolean(gvalue as *const GValue) == 0 {
|
||||
false
|
||||
} else {
|
||||
true
|
||||
}))
|
||||
Some(Value::Bool(!(g_value_get_boolean(gvalue as *const GValue) == 0)))
|
||||
},
|
||||
TYPE_INT => unsafe { Some(Value::Int(g_value_get_int(gvalue as *const GValue))) },
|
||||
TYPE_UINT => unsafe { Some(Value::UInt(g_value_get_uint(gvalue as *const GValue))) },
|
||||
|
|
Loading…
Reference in a new issue