Commit 23c1a08b authored by Sebastian Dröge's avatar Sebastian Dröge

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.
parent d06c3326
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment