Some compiler warning fixes to satisfy XCode compiler

https://bugzilla.gnome.org/show_bug.cgi?id=720513
This commit is contained in:
Todd Agulnick 2013-12-15 21:01:42 -08:00 committed by Sebastian Dröge
parent 5a48fb7cdb
commit 38d8fa12a5
2 changed files with 3 additions and 3 deletions

View file

@ -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];
}

View file

@ -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);