From 38d8fa12a5f31b9e6898338e916bcb32719e4282 Mon Sep 17 00:00:00 2001 From: Todd Agulnick Date: Sun, 15 Dec 2013 21:01:42 -0800 Subject: [PATCH] Some compiler warning fixes to satisfy XCode compiler https://bugzilla.gnome.org/show_bug.cgi?id=720513 --- gst-libs/gst/audio/audio-format.c | 4 ++-- sys/xvimage/xvimagesink.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gst-libs/gst/audio/audio-format.c b/gst-libs/gst/audio/audio-format.c index 31cc0ec6c7..c7f5d46dc4 100644 --- a/gst-libs/gst/audio/audio-format.c +++ b/gst-libs/gst/audio/audio-format.c @@ -416,7 +416,7 @@ gst_audio_format_to_string (GstAudioFormat format) { g_return_val_if_fail (format != GST_AUDIO_FORMAT_UNKNOWN, NULL); - if (format >= G_N_ELEMENTS (formats)) + if ((gint) format >= G_N_ELEMENTS (formats)) return NULL; return GST_AUDIO_FORMAT_INFO_NAME (&formats[format]); @@ -433,7 +433,7 @@ gst_audio_format_to_string (GstAudioFormat format) const GstAudioFormatInfo * gst_audio_format_get_info (GstAudioFormat format) { - g_return_val_if_fail (format < G_N_ELEMENTS (formats), NULL); + g_return_val_if_fail ((gint) format < G_N_ELEMENTS (formats), NULL); return &formats[format]; } diff --git a/sys/xvimage/xvimagesink.c b/sys/xvimage/xvimagesink.c index cb48e126a8..eddd757485 100644 --- a/sys/xvimage/xvimagesink.c +++ b/sys/xvimage/xvimagesink.c @@ -909,7 +909,7 @@ gst_xvimagesink_show_frame (GstVideoSink * vsink, GstBuffer * buf) { GstFlowReturn res; GstXvImageSink *xvimagesink; - GstBuffer *to_put; + GstBuffer *to_put = NULL; GstMemory *mem; xvimagesink = GST_XVIMAGESINK (vsink);