gtk4: Make no caps in the allocation query a non-error

This commit is contained in:
Sebastian Dröge 2023-01-19 16:36:37 +02:00
parent 101bcbc1a0
commit c83f48f0a1

View file

@ -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) {