projects
/
platform
/
upstream
/
gstreamer.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ximagesink: Don't access structures of EMPTY caps
[platform/upstream/gstreamer.git]
/
sys
/
ximage
/
ximagesink.c
diff --git
a/sys/ximage/ximagesink.c
b/sys/ximage/ximagesink.c
index
c036f96
..
aaf7223
100644
(file)
--- a/
sys/ximage/ximagesink.c
+++ b/
sys/ximage/ximagesink.c
@@
-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;