diff options
author | Neil Roberts <neil@linux.intel.com> | 2014-03-21 15:30:30 +0000 |
---|---|---|
committer | Neil Roberts <neil@linux.intel.com> | 2014-03-21 15:30:30 +0000 |
commit | a972024ed742bbcf9ab06dbce68a39ad4558c44e (patch) | |
tree | e204c10830b5ccd70ef764837c7450e4ee81c819 | |
parent | 1e2a65daeee6c220409cd7f7975016fc8c065ad3 (diff) | |
download | cogl-a972024ed742bbcf9ab06dbce68a39ad4558c44e.tar.gz |
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.
-rw-r--r-- | 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 14610834..eaa3e122 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; |