mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-06-05 23:18:55 +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
|
// GL specific things
|
||||||
let (caps, need_pool) = query.get_owned();
|
let (caps, need_pool) = query.get_owned();
|
||||||
|
if caps.is_empty() || caps.is_any() {
|
||||||
if caps.is_empty() {
|
return Ok(());
|
||||||
return Err(gst::loggable_error!(CAT, "No caps where specified."));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Some(f) = caps.features(0) {
|
if let Some(f) = caps.features(0) {
|
||||||
|
|
Loading…
Reference in a new issue