osx: more compiler warning fixes

Avoid new warnings.

Fixes #613758.
This commit is contained in:
Tristan Matthews 2010-03-23 19:56:48 -04:00 committed by Tim-Philipp Müller
parent 01f4f9a4e8
commit 552cd26b43
6 changed files with 14 additions and 14 deletions

View file

@ -42,8 +42,6 @@
#include <string.h>
static GstElementClass *parent_class;
static GstStaticPadTemplate gst_pnmdec_src_pad_template =
GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS,
GST_STATIC_CAPS (GST_VIDEO_CAPS_RGB "; "

View file

@ -323,7 +323,7 @@ typedef struct
} video_device;
static video_device *
video_device_alloc ()
video_device_alloc (void)
{
video_device *dev;
dev = g_malloc (sizeof (video_device));
@ -637,7 +637,7 @@ gst_osx_video_src_base_init (gpointer gclass)
GstElementClass *element_class = GST_ELEMENT_CLASS (gclass);
GST_DEBUG (G_STRFUNC);
GST_DEBUG ("%s", G_STRFUNC);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_template));
@ -658,7 +658,7 @@ gst_osx_video_src_class_init (GstOSXVideoSrcClass * klass)
GstPushSrcClass *pushsrc_class;
OSErr err;
GST_DEBUG (G_STRFUNC);
GST_DEBUG ("%s", G_STRFUNC);
gobject_class = G_OBJECT_CLASS (klass);
element_class = GST_ELEMENT_CLASS (klass);
@ -705,7 +705,7 @@ gst_osx_video_src_class_init (GstOSXVideoSrcClass * klass)
static void
gst_osx_video_src_init (GstOSXVideoSrc * self, GstOSXVideoSrcClass * klass)
{
GST_DEBUG_OBJECT (self, G_STRFUNC);
GST_DEBUG_OBJECT (self, "%s", G_STRFUNC);
gst_base_src_set_format (GST_BASE_SRC (self), GST_FORMAT_TIME);
gst_base_src_set_live (GST_BASE_SRC (self), TRUE);
@ -715,7 +715,7 @@ static void
gst_osx_video_src_dispose (GObject * object)
{
GstOSXVideoSrc *self = GST_OSX_VIDEO_SRC (object);
GST_DEBUG_OBJECT (object, G_STRFUNC);
GST_DEBUG_OBJECT (object, "%s", G_STRFUNC);
if (self->device_id) {
g_free (self->device_id);
@ -738,7 +738,7 @@ gst_osx_video_src_dispose (GObject * object)
static void
gst_osx_video_src_finalize (GstOSXVideoSrc * self)
{
GST_DEBUG_OBJECT (self, G_STRFUNC);
GST_DEBUG_OBJECT (self, "%s", G_STRFUNC);
G_OBJECT_CLASS (parent_class)->finalize (G_OBJECT (self));
}
@ -833,7 +833,7 @@ gst_osx_video_src_set_caps (GstBaseSrc * src, GstCaps * caps)
float fps;
ComponentResult err;
GST_DEBUG_OBJECT (src, G_STRFUNC);
GST_DEBUG_OBJECT (src, "%s", G_STRFUNC);
if (!self->seq_grab)
return FALSE;

View file

@ -956,7 +956,7 @@ qtwrapper_audio_decoder_base_init (QTWrapperAudioDecoderClass * klass)
g_strdup_printf ("QTWrapper SCAudio wrapper for decoder: %s",
GST_STR_NULL (info));
gst_element_class_set_details_simple (element_class,
longname "Codec/Decoder/Audio", description,
longname, "Codec/Decoder/Audio", description,
"Fluendo <gstreamer@fluendo.com>, "
"Pioneers of the Inevitable <songbird@songbirdnest.com>");

View file

@ -47,7 +47,7 @@
#include "qtutils.h"
static GstCaps *
audio_caps_from_string (gchar * str)
audio_caps_from_string (const gchar * str)
{
GstCaps *res;

View file

@ -81,7 +81,7 @@ get_name_info_from_component (Component componentID,
tmpname = g_strndup ((*(char **) nameHandle) + 1,
**((guint8 **) nameHandle));
*name = g_convert_with_fallback (tmpname, -1, "ASCII", "MAC",
" ", &read, &written, NULL);
(gchar *) " ", &read, &written, NULL);
if (!*name)
GST_WARNING ("read:%" G_GSIZE_FORMAT ", written:%" G_GSIZE_FORMAT, read,
written);
@ -92,8 +92,8 @@ get_name_info_from_component (Component componentID,
tmpinfo =
g_strndup ((*(char **) infoHandle) + 1, **((guint8 **) infoHandle));
*info =
g_convert_with_fallback (tmpinfo, -1, "ASCII", "MAC", " ", NULL, NULL,
NULL);
g_convert_with_fallback (tmpinfo, -1, "ASCII", "MAC", (gchar *) " ",
NULL, NULL, NULL);
g_free (tmpinfo);
}

View file

@ -127,6 +127,8 @@ addSInt32ToDictionary (CFMutableDictionaryRef dictionary, CFStringRef key,
void dump_cvpixel_buffer (CVPixelBufferRef pixbuf);
void dump_avcc_atom (guint8 * atom);
AudioBufferList *AllocateAudioBufferList(UInt32 numChannels, UInt32 size);
void DestroyAudioBufferList(AudioBufferList* list);