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.
This commit is contained in:
Edward Hervey 2008-10-08 09:29:00 +00:00
parent a3dd91a4ae
commit d0777d87fb
3 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2008-10-08 Edward Hervey <edward.hervey@collabora.co.uk>
* sys/ximage/gstximagesrc.c: (gst_ximage_src_stop):
Fix build for systems that don't have XDamage.
2008-10-07 Wim Taymans <wim.taymans@collabora.co.uk>
* tests/examples/rtp/client-H263p.sdp:

2
common

@ -1 +1 @@
Subproject commit ea93f2ed580bcc19322e4c07f677eda980c821eb
Subproject commit 46eefd2f8474ee748864c59635be87b5a29317d1

View file

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