From db7490cd72d94b5071d80c2b0d795c45a927e7be Mon Sep 17 00:00:00 2001 From: Julien Isorce Date: Mon, 21 Jul 2008 00:24:48 +0200 Subject: [PATCH] [133/906] finish todo task 4 --- gst-libs/gst/gl/gstgldisplay.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/gst-libs/gst/gl/gstgldisplay.c b/gst-libs/gst/gl/gstgldisplay.c index c4246dc..e2fced3 100644 --- a/gst-libs/gst/gl/gstgldisplay.c +++ b/gst-libs/gst/gl/gstgldisplay.c @@ -1498,8 +1498,9 @@ gst_gl_display_thread_gen_shader (GstGLDisplay* display) } else { - g_print ("One of the filter required ARB_fragment_shader\n"); + g_warning ("One of the filter required ARB_fragment_shader\n"); display->isAlive = FALSE; + display->gen_shader = NULL; } g_cond_signal (display->cond_gen_shader); } @@ -1510,8 +1511,11 @@ static void gst_gl_display_thread_del_shader (GstGLDisplay* display) { glutSetWindow (display->glutWinId); - g_object_unref (G_OBJECT (display->del_shader)); - display->del_shader = NULL; + if (display->del_shader) + { + g_object_unref (G_OBJECT (display->del_shader)); + display->del_shader = NULL; + } g_cond_signal (display->cond_del_shader); } -- 2.7.4