Commit 38d8fa12 authored by Todd Agulnick's avatar Todd Agulnick Committed by Sebastian Dröge

Some compiler warning fixes to satisfy XCode compiler

https://bugzilla.gnome.org/show_bug.cgi?id=720513
parent 5a48fb7c
......@@ -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];
}
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment