forked from mirrors/gstreamer-rs
Message::get_src() can return None
The src is optional
This commit is contained in:
parent
86b787ac81
commit
1dbc63dcb3
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ unsafe impl MiniObject for MessageRef {
|
|||
}
|
||||
|
||||
impl MessageRef {
|
||||
pub fn get_src(&self) -> Object {
|
||||
pub fn get_src(&self) -> Option<Object> {
|
||||
unsafe { from_glib_none((*self.as_ptr()).src) }
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue