[rygel-gst-0-10-fullscreen-renderer] Fix some warnings.



commit 227d3bf29ae52c0690ac1d21196f7654b2d6b050
Author: Krzesimir Nowak <qdlacz gmail com>
Date:   Thu Feb 14 12:03:59 2013 +0100

    Fix some warnings.

 src/fullscreen-renderer.c    |   11 +++++------
 src/rygel-playbin-player.c   |    5 ++---
 src/rygel-playbin-renderer.c |    2 +-
 3 files changed, 8 insertions(+), 10 deletions(-)
---
diff --git a/src/fullscreen-renderer.c b/src/fullscreen-renderer.c
index 828968f..efb13e9 100644
--- a/src/fullscreen-renderer.c
+++ b/src/fullscreen-renderer.c
@@ -55,7 +55,6 @@ typedef struct _MainData MainData;
 static void on_realize (GtkWidget *widget, gpointer user_data)
 {
   GdkWindow *window;
-  guintptr window_handle;
   MainData *data = (MainData *) user_data;
 
   window = gtk_widget_get_window (widget);
@@ -82,11 +81,13 @@ static gboolean on_draw (GtkWidget *widget, cairo_t *cr, gpointer user_data)
     cairo_rectangle (cr, 0, 0, width, height);
     cairo_fill (cr);
   }
+
+  return TRUE;
 }
 
-static gboolean on_key_released (GtkWidget *widget,
+static gboolean on_key_released (GtkWidget *widget G_GNUC_UNUSED,
                GdkEvent *event,
-               gpointer user_data)
+               gpointer user_data G_GNUC_UNUSED)
 {
   GdkEventKey *key_event = (GdkEventKey *) event;
 
@@ -132,8 +133,6 @@ on_bus (GstBus *bus G_GNUC_UNUSED,
 int main (int argc, char *argv[])
 {
   RygelPlaybinRenderer *renderer;
-  GError *error = NULL;
-  GMainLoop *loop;
   MainData data;
   GdkCursor *cursor;
   GstBus *bus;
@@ -165,7 +164,7 @@ int main (int argc, char *argv[])
   g_signal_connect (data.video,
             "key-release-event",
             G_CALLBACK (on_key_released),
-            &data);
+            NULL);
   gtk_window_fullscreen (data.window);
   gtk_widget_show_all (GTK_WIDGET (data.window));
   cursor = gdk_cursor_new_for_display (gtk_widget_get_display (data.video),
diff --git a/src/rygel-playbin-player.c b/src/rygel-playbin-player.c
index 9746160..9104f57 100644
--- a/src/rygel-playbin-player.c
+++ b/src/rygel-playbin-player.c
@@ -420,7 +420,7 @@ rygel_playbin_player_generate_basic_didl (RygelPlaybinPlayer *self) {
 
 
 static void
-rygel_playbin_player_on_source_setup (GstElement *sender, GstElement *source, gpointer user_data) {
+rygel_playbin_player_on_source_setup (GstElement *sender G_GNUC_UNUSED, GstElement *source, gpointer 
user_data) {
   RygelPlaybinPlayer *self = RYGEL_PLAYBIN_PLAYER (user_data);
 
   GstStructure *structure = NULL;
@@ -444,7 +444,7 @@ rygel_playbin_player_on_source_setup (GstElement *sender, GstElement *source, gp
 }
 
 static void
-rygel_playbin_player_on_uri_notify (GObject *sender, GParamSpec *pspec, gpointer user_data) {
+rygel_playbin_player_on_uri_notify (GObject *sender G_GNUC_UNUSED, GParamSpec *pspec, gpointer user_data) {
   RygelPlaybinPlayer *self = RYGEL_PLAYBIN_PLAYER (user_data);
 
   g_return_if_fail (self);
@@ -581,7 +581,6 @@ rygel_playbin_player_real_set_playback_state (RygelMediaPlayer *base, const gcha
 static gchar**
 rygel_playbin_player_real_get_allowed_playback_speeds (RygelMediaPlayer *base, int *result_length) {
   RygelPlaybinPlayer *self = RYGEL_PLAYBIN_PLAYER (base);
-  int length = 0;
   gchar **result = NULL;
   int i = 0;
 
diff --git a/src/rygel-playbin-renderer.c b/src/rygel-playbin-renderer.c
index 46e872e..d1d1f8b 100644
--- a/src/rygel-playbin-renderer.c
+++ b/src/rygel-playbin-renderer.c
@@ -92,5 +92,5 @@ rygel_playbin_renderer_class_init (RygelPlaybinRendererClass *klass) {
 }
 
 static void
-rygel_playbin_renderer_init (RygelPlaybinRenderer *self) {
+rygel_playbin_renderer_init (RygelPlaybinRenderer *self G_GNUC_UNUSED) {
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]