forked from mirrors/gstreamer-rs
Fix typefind test if typefind factories without caps are available
This commit is contained in:
parent
e88017f914
commit
75acd7ea95
1 changed files with 1 additions and 1 deletions
|
@ -243,7 +243,7 @@ mod tests {
|
|||
.cloned()
|
||||
.find(|f| {
|
||||
f.get_caps()
|
||||
.map(|c| c.get_structure(0).unwrap().get_name() == "application/xml")
|
||||
.map(|c| c.get_structure(0).map(|s| s.get_name() == "application/xml").unwrap_or(false))
|
||||
.unwrap_or(false)
|
||||
})
|
||||
.unwrap();
|
||||
|
|
Loading…
Reference in a new issue