summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sourceforge.net>2008-10-11 16:27:28 +0000
committerStefan Kost <ensonic@users.sourceforge.net>2008-10-11 16:27:28 +0000
commit13759bcbff961164ab14b6974c6209f385b56e17 (patch)
tree6ca7a715cb0aebc941face4aba91f218db644fc6 /sys
parent60bf63486bc7fdf44b698a8cf078d26315727696 (diff)
sys/xvimage/xvimagesink.c: Don't assert on caps==NULL.
Original commit message from CVS: * sys/xvimage/xvimagesink.c: Don't assert on caps==NULL.
Diffstat (limited to 'sys')
-rw-r--r--sys/xvimage/xvimagesink.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/xvimage/xvimagesink.c b/sys/xvimage/xvimagesink.c
index a47524a0..0b87a2bd 100644
--- a/sys/xvimage/xvimagesink.c
+++ b/sys/xvimage/xvimagesink.c
@@ -517,6 +517,9 @@ gst_xvimagesink_xvimage_new (GstXvImageSink * xvimagesink, GstCaps * caps)
g_return_val_if_fail (GST_IS_XVIMAGESINK (xvimagesink), NULL);
+ if (caps == NULL)
+ return NULL;
+
xvimage = (GstXvImageBuffer *) gst_mini_object_new (GST_TYPE_XVIMAGE_BUFFER);
GST_DEBUG_OBJECT (xvimage, "Creating new XvImageBuffer");