mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-01-23 17:38:20 +00:00
gtk4: Make no caps in the allocation query a non-error
This commit is contained in:
parent
101bcbc1a0
commit
c83f48f0a1
1 changed files with 2 additions and 3 deletions
|
@ -331,9 +331,8 @@ 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."));
|
||||
if caps.is_empty() || caps.is_any() {
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
if let Some(f) = caps.features(0) {
|
||||
|
|
Loading…
Reference in a new issue