mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
Some compiler warning fixes to satisfy XCode compiler
https://bugzilla.gnome.org/show_bug.cgi?id=720513
This commit is contained in:
parent
5a48fb7cdb
commit
38d8fa12a5
2 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue