ximagesrc: remove pointless g_return_val_if_fail()

ximage won't ever be NULL here because the dispose
function is called via ximage->dispose().
This commit is contained in:
Tim-Philipp Müller 2015-02-23 20:06:25 +00:00
parent fa0870658d
commit ba0eeaf8f4

View file

@ -320,8 +320,6 @@ gst_ximagesrc_buffer_dispose (GstBuffer * ximage)
GstMetaXImage *meta; GstMetaXImage *meta;
gboolean ret = TRUE; gboolean ret = TRUE;
g_return_val_if_fail (ximage != NULL, FALSE);
meta = GST_META_XIMAGE_GET (ximage); meta = GST_META_XIMAGE_GET (ximage);
parent = meta->parent; parent = meta->parent;