From e8abbdaaa768ec97efcda85fed7ce1c1f0eed803 Mon Sep 17 00:00:00 2001 From: Julien Isorce Date: Thu, 18 Sep 2008 22:50:05 +0200 Subject: [PATCH] [226/906] check on win32 that every tests/pipelines and tests/examples (generic, gtk, qt) still work --- gst-libs/gst/gl/gstgldisplay.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/gst-libs/gst/gl/gstgldisplay.c b/gst-libs/gst/gl/gstgldisplay.c index 72bc5aa16c..35b3e4ac03 100644 --- a/gst-libs/gst/gl/gstgldisplay.c +++ b/gst-libs/gst/gl/gstgldisplay.c @@ -2133,11 +2133,14 @@ void gst_gl_display_del_texture (GstGLDisplay* display, GLuint texture, GLint width, GLint height) { gst_gl_display_lock (display); - display->del_texture = texture; - display->del_texture_width = width; - display->del_texture_height = height; - gst_gl_display_post_message (GST_GL_DISPLAY_ACTION_DEL_TEXTURE, display); - g_cond_wait (display->cond_del_texture, display->mutex); + if (texture) + { + display->del_texture = texture; + display->del_texture_width = width; + display->del_texture_height = height; + gst_gl_display_post_message (GST_GL_DISPLAY_ACTION_DEL_TEXTURE, display); + g_cond_wait (display->cond_del_texture, display->mutex); + } gst_gl_display_unlock (display); }