mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-02-16 21:05:15 +00:00
gtk4: Update for allocation query caps API changes
And make no caps into a non-error.
This commit is contained in:
parent
03df4f253c
commit
d1196c3e28
1 changed files with 9 additions and 4 deletions
|
@ -334,10 +334,15 @@ impl BaseSinkImpl for PaintableSink {
|
|||
|
||||
// GL specific things
|
||||
let (caps, need_pool) = query.get_owned();
|
||||
|
||||
if caps.is_empty() {
|
||||
return Err(gst::loggable_error!(CAT, "No caps where specified."));
|
||||
}
|
||||
let caps = match caps {
|
||||
None => {
|
||||
return Ok(());
|
||||
}
|
||||
Some(caps) if caps.is_empty() || caps.is_any() => {
|
||||
return Ok(());
|
||||
}
|
||||
Some(caps) => caps,
|
||||
};
|
||||
|
||||
if let Some(f) = caps.features(0) {
|
||||
if !f.contains("memory:GLMemory") {
|
||||
|
|
Loading…
Reference in a new issue