mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-29 11:40:38 +00:00
ximagesink: Don't access structures of EMPTY caps
If the intersection between our caps and the filter caps is empty, just immediately return EMPTY caps instead of trying to access the (non-existant) structures.
This commit is contained in:
parent
d06c332655
commit
23c1a08bce
1 changed files with 5 additions and 0 deletions
|
@ -1009,6 +1009,11 @@ gst_ximagesink_getcaps (GstBaseSink * bsink, GstCaps * filter)
|
||||||
caps = intersection;
|
caps = intersection;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (gst_caps_is_empty (caps)) {
|
||||||
|
g_mutex_unlock (&ximagesink->x_lock);
|
||||||
|
return caps;
|
||||||
|
}
|
||||||
|
|
||||||
if (ximagesink->xwindow && ximagesink->xwindow->width) {
|
if (ximagesink->xwindow && ximagesink->xwindow->width) {
|
||||||
GstStructure *s0, *s1;
|
GstStructure *s0, *s1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue