From 80b16b3a4e31c124b08d472a469fd15c97d8d640 Mon Sep 17 00:00:00 2001 From: Christian Kirbach Date: Tue, 24 Apr 2007 20:45:24 +0000 Subject: [PATCH] sys/ximage/ximagesink.c: Fix build if XShm is not available (#432362). Original commit message from CVS: Patch by: Christian Kirbach * sys/ximage/ximagesink.c: Fix build if XShm is not available (#432362). --- ChangeLog | 7 +++++++ sys/ximage/ximagesink.c | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index baa3f6b..5e09d4e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2007-04-24 Tim-Philipp Müller + + Patch by: Christian Kirbach + + * sys/ximage/ximagesink.c: + Fix build if XShm is not available (#432362). + 2007-04-24 Sebastian Dröge * gst/audioconvert/gstaudioconvert.c: (gst_audio_convert_init): diff --git a/sys/ximage/ximagesink.c b/sys/ximage/ximagesink.c index 3ecd805..af50cc0 100644 --- a/sys/ximage/ximagesink.c +++ b/sys/ximage/ximagesink.c @@ -293,7 +293,6 @@ gst_ximage_buffer_get_type (void) /* X11 stuff */ -#ifdef HAVE_XSHM /* Check that XShm calls actually work */ static gboolean error_caught = FALSE; static int @@ -307,6 +306,8 @@ gst_ximagesink_handle_xerror (Display * display, XErrorEvent * xevent) return 0; } +#ifdef HAVE_XSHM /* Check that XShm calls actually work */ + static gboolean gst_ximagesink_check_xshm_calls (GstXImageSink * ximagesink, GstXContext * xcontext) -- 2.7.4