mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-06-03 05:49:37 +00:00
Fix typefind test if typefind factories without caps are available
This commit is contained in:
parent
bc23d6a6cd
commit
332ab9690f
|
@ -248,7 +248,7 @@ mod tests {
|
||||||
.cloned()
|
.cloned()
|
||||||
.find(|f| {
|
.find(|f| {
|
||||||
f.get_caps()
|
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_or(false)
|
||||||
})
|
})
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
Loading…
Reference in a new issue