[cogl/cogl-1.18] cogl-gst-video-sink: Fix a call to g_return_val_if_fail



commit a972024ed742bbcf9ab06dbce68a39ad4558c44e
Author: Neil Roberts <neil linux intel com>
Date:   Fri Mar 21 15:30:30 2014 +0000

    cogl-gst-video-sink: Fix a call to g_return_val_if_fail
    
    cogl_gst_video_sink_get_natural_size was using g_return_val_if_fail
    but its return type is void. For some reason GCC doesn't complain
    about this but it causes a compile error on clang.

 cogl-gst/cogl-gst-video-sink.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/cogl-gst/cogl-gst-video-sink.c b/cogl-gst/cogl-gst-video-sink.c
index 1461083..eaa3e12 100644
--- a/cogl-gst/cogl-gst-video-sink.c
+++ b/cogl-gst/cogl-gst-video-sink.c
@@ -1695,7 +1695,7 @@ cogl_gst_video_sink_get_natural_size (CoglGstVideoSink *vt,
 {
   GstVideoInfo *info;
 
-  g_return_val_if_fail (COGL_GST_IS_VIDEO_SINK (vt), 0.);
+  g_return_if_fail (COGL_GST_IS_VIDEO_SINK (vt));
 
   info = &vt->priv->info;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]