From d0777d87fb887eb988db0c992eebbf6bde0be94d Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Wed, 8 Oct 2008 09:29:00 +0000 Subject: sys/ximage/gstximagesrc.c: Fix build for systems that don't have XDamage. Original commit message from CVS: * sys/ximage/gstximagesrc.c: (gst_ximage_src_stop): Fix build for systems that don't have XDamage. --- sys/ximage/gstximagesrc.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sys/ximage') diff --git a/sys/ximage/gstximagesrc.c b/sys/ximage/gstximagesrc.c index f6782b6b..5f02b958 100644 --- a/sys/ximage/gstximagesrc.c +++ b/sys/ximage/gstximagesrc.c @@ -222,15 +222,19 @@ gst_ximage_src_stop (GstBaseSrc * basesrc) { GstXImageSrc *src = GST_XIMAGE_SRC (basesrc); +#ifdef HAVE_XDAMAGE if (src->last_ximage) gst_buffer_unref (GST_BUFFER_CAST (src->last_ximage)); src->last_ximage = NULL; +#endif gst_ximage_src_clear_bufpool (src); +#ifdef HAVE_XFIXES if (src->cursor_image) XFree (src->cursor_image); src->cursor_image = NULL; +#endif if (src->xcontext) { g_mutex_lock (src->x_lock); -- cgit