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.
This commit is contained in:
Stefan Kost 2008-10-11 16:27:28 +00:00
parent 60bf63486b
commit 13759bcbff
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2008-10-11 Stefan Kost <ensonic@users.sf.net>
* sys/xvimage/xvimagesink.c:
Don't assert on caps==NULL.
2008-10-10 Sebastian Dröge <sebastian.droege@collabora.co.uk>
* gst/subparse/gstsubparse.c:

View file

@ -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");