From a0552f1769ef1f5bc10937f1d2663b19e9813ae3 Mon Sep 17 00:00:00 2001 From: Julien Moutte Date: Thu, 4 Jan 2007 09:51:56 +0000 Subject: [PATCH] ext/: Fix various compiler warnings that reveal potential bugs. Original commit message from CVS: 2007-01-04 Julien MOUTTE * ext/directfb/dfbvideosink.c: (gst_dfbvideosink_navigation_send_event), (gst_dfbvideosink_get_type): * ext/sdl/sdlaudiosink.c: (gst_sdlaudio_sink_open): * ext/sdl/sdlvideosink.c: (gst_sdlvideosink_setcaps), (gst_sdlvideosink_show_frame), (gst_sdlvideosink_navigation_send_event): * ext/sdl/sdlvideosink.h: Fix various compiler warnings that reveal potential bugs. --- ChangeLog | 12 ++++++++++++ ext/directfb/dfbvideosink.c | 8 +++++++- ext/sdl/sdlaudiosink.c | 6 ------ ext/sdl/sdlvideosink.c | 3 --- ext/sdl/sdlvideosink.h | 2 +- 5 files changed, 20 insertions(+), 11 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8b80ab6d88..881ba70ccc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,15 @@ +2007-01-04 Julien MOUTTE + + * ext/directfb/dfbvideosink.c: + (gst_dfbvideosink_navigation_send_event), + (gst_dfbvideosink_get_type): + * ext/sdl/sdlaudiosink.c: (gst_sdlaudio_sink_open): + * ext/sdl/sdlvideosink.c: (gst_sdlvideosink_setcaps), + (gst_sdlvideosink_show_frame), + (gst_sdlvideosink_navigation_send_event): + * ext/sdl/sdlvideosink.h: Fix various compiler warnings that + reveal potential bugs. + 2007-01-04 Tim-Philipp Müller Patch by: Vincent Torri diff --git a/ext/directfb/dfbvideosink.c b/ext/directfb/dfbvideosink.c index 9d1cca1006..1b72de87fb 100644 --- a/ext/directfb/dfbvideosink.c +++ b/ext/directfb/dfbvideosink.c @@ -1942,7 +1942,6 @@ gst_dfbvideosink_navigation_send_event (GstNavigation * navigation, GstDfbVideoSink *dfbvideosink = GST_DFBVIDEOSINK (navigation); GstEvent *event; GstVideoRectangle src, dst, result; - gint width, height; double x, y; GstPad *pad = NULL; @@ -2366,6 +2365,11 @@ gst_dfbvideosink_get_type (void) NULL, NULL, }; + static const GInterfaceInfo colorbalance_info = { + (GInterfaceInitFunc) gst_dfbvideosink_colorbalance_init, + NULL, + NULL, + }; dfbvideosink_type = g_type_register_static (GST_TYPE_VIDEO_SINK, "GstDfbVideoSink", &dfbvideosink_info, 0); @@ -2374,6 +2378,8 @@ gst_dfbvideosink_get_type (void) GST_TYPE_IMPLEMENTS_INTERFACE, &iface_info); g_type_add_interface_static (dfbvideosink_type, GST_TYPE_NAVIGATION, &navigation_info); + g_type_add_interface_static (dfbvideosink_type, GST_TYPE_COLOR_BALANCE, + &colorbalance_info); } return dfbvideosink_type; diff --git a/ext/sdl/sdlaudiosink.c b/ext/sdl/sdlaudiosink.c index 85bcd4d26f..798297bf37 100644 --- a/ext/sdl/sdlaudiosink.c +++ b/ext/sdl/sdlaudiosink.c @@ -35,11 +35,6 @@ GST_ELEMENT_DETAILS ("SDL audio sink", static void gst_sdlaudio_sink_dispose (GObject * object); -static void gst_sdlaudio_sink_get_property (GObject * object, guint prop_id, - GValue * value, GParamSpec * pspec); -static void gst_sdlaudio_sink_set_property (GObject * object, guint prop_id, - const GValue * value, GParamSpec * pspec); - static GstCaps *gst_sdlaudio_sink_getcaps (GstBaseSink * bsink); static gboolean gst_sdlaudio_sink_open (GstAudioSink * asink); @@ -258,7 +253,6 @@ static gboolean gst_sdlaudio_sink_open (GstAudioSink * asink) { GstSDLAudioSink *sdlaudio; - int mode; sdlaudio = GST_SDLAUDIOSINK (asink); diff --git a/ext/sdl/sdlvideosink.c b/ext/sdl/sdlvideosink.c index de796ea334..4dc501c96d 100644 --- a/ext/sdl/sdlvideosink.c +++ b/ext/sdl/sdlvideosink.c @@ -717,7 +717,6 @@ static gboolean gst_sdlvideosink_setcaps (GstBaseSink * bsink, GstCaps * vscapslist) { GstSDLVideoSink *sdlvideosink; - guint32 format; GstStructure *structure; gboolean res = TRUE; @@ -746,7 +745,6 @@ gst_sdlvideosink_show_frame (GstBaseSink * bsink, GstBuffer * buf) { GstSDLVideoSink *sdlvideosink; - SDL_Event sdl_event; sdlvideosink = GST_SDLVIDEOSINK (bsink); @@ -948,7 +946,6 @@ gst_sdlvideosink_navigation_send_event (GstNavigation * navigation, GstSDLVideoSink *sdlvideosink = GST_SDLVIDEOSINK (navigation); GstEvent *event; GstVideoRectangle src, dst, result; - gint width, height; double x, y; GstPad *pad = NULL; diff --git a/ext/sdl/sdlvideosink.h b/ext/sdl/sdlvideosink.h index b7e13c0b3b..77e9e0ed75 100644 --- a/ext/sdl/sdlvideosink.h +++ b/ext/sdl/sdlvideosink.h @@ -75,7 +75,7 @@ struct _GstSDLVideoSinkClass { }; -GType gst_sdlsink_get_type(void); +GType gst_sdlvideosink_get_type(void); G_END_DECLS