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
@ -1009,6 +1009,11 @@ gst_ximagesink_getcaps (GstBaseSink * bsink, GstCaps * filter)
|
||||
caps = intersection;
|
||||
}
|
||||
|
||||
if (gst_caps_is_empty (caps)) {
|
||||
g_mutex_unlock (&ximagesink->x_lock);
|
||||
return caps;
|
||||
}
|
||||
|
||||
if (ximagesink->xwindow && ximagesink->xwindow->width) {
|
||||
GstStructure *s0, *s1;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user