[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gstreamer-cvs
Subject:    gst-plugins-bad: glwindow: fix compiler error
From:       ystreet () kemper ! freedesktop ! org (Matthew Waters)
Date:       2015-05-31 6:53:37
Message-ID: 20150531065337.DE52B761E8 () kemper ! freedesktop ! org
[Download RAW message or body]

Module: gst-plugins-bad
Branch: master
Commit: 360f0be2a80ca11e1b3b0c087367c48cb18c4c3e
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=360f0be2a80ca11e1b3b0c087367c48cb18c4c3e


Author: Matthew Waters <matthew@centricular.com>
Date:   Sun May 31 16:53:14 2015 +1000

glwindow: fix compiler error

gstglwindow.c:1118:544: error: 'return' with no value, in function returning non-void \
[-Werror]  g_return_if_fail (GST_GL_IS_WINDOW (window));

---

 gst-libs/gst/gl/gstglwindow.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gst-libs/gst/gl/gstglwindow.c b/gst-libs/gst/gl/gstglwindow.c
index 8682b1c..6e7453f 100644
--- a/gst-libs/gst/gl/gstglwindow.c
+++ b/gst-libs/gst/gl/gstglwindow.c
@@ -1115,7 +1115,7 @@ gst_gl_window_set_render_rectangle (GstGLWindow * window, gint \
x, gint y,  GstGLWindowClass *window_class;
   gboolean ret = FALSE;
 
-  g_return_if_fail (GST_GL_IS_WINDOW (window));
+  g_return_val_if_fail (GST_GL_IS_WINDOW (window), FALSE);
   window_class = GST_GL_WINDOW_GET_CLASS (window);
 
   if (x < 0 || y < 0 || width <= 0 || height <= 0)

_______________________________________________
gstreamer-commits mailing list
gstreamer-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/gstreamer-commits


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic