[rygel-gst-0-10-plugins] Fix some warnings.



commit e3cc68ef95caf101ddb8f964e3b46fecfd234454
Author: Krzesimir Nowak <krnowak openismus com>
Date:   Fri Feb 1 14:39:50 2013 +0100

    Fix some warnings.

 .../rygel-media-export-recursive-file-monitor.c    |    2 +-
 src/media-export/rygel-media-export-sql-factory.c  |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/media-export/rygel-media-export-recursive-file-monitor.c b/src/media-export/rygel-media-export-recursive-file-monitor.c
index e972e00..613104a 100644
--- a/src/media-export/rygel-media-export-recursive-file-monitor.c
+++ b/src/media-export/rygel-media-export-recursive-file-monitor.c
@@ -53,7 +53,7 @@ static void rygel_media_export_recursive_file_monitor_on_cancelled (GCancellable
 
 static void
 rygel_media_export_recursive_file_monitor_on_config_changed (RygelConfiguration *config, const gchar *section, const gchar *key, gpointer user_data) {
-  RygelMediaExportRecursiveFileMonitor *self = RYGEL_MEDIA_EXPORT_RECURSIVE_FILE_MONITOR (self);
+  RygelMediaExportRecursiveFileMonitor *self = RYGEL_MEDIA_EXPORT_RECURSIVE_FILE_MONITOR (user_data);
 
   g_return_if_fail (self);
   g_return_if_fail (config);
diff --git a/src/media-export/rygel-media-export-sql-factory.c b/src/media-export/rygel-media-export-sql-factory.c
index d90cb01..fe29614 100644
--- a/src/media-export/rygel-media-export-sql-factory.c
+++ b/src/media-export/rygel-media-export-sql-factory.c
@@ -311,7 +311,7 @@ rygel_media_export_sql_factory_make (RygelMediaExportSQLFactory *self, RygelMedi
 
 RygelMediaExportSQLFactory*
 rygel_media_export_sql_factory_new (void) {
-  RYGEL_MEDIA_EXPORT_SQL_FACTORY (g_object_new (RYGEL_MEDIA_EXPORT_TYPE_SQL_FACTORY, NULL));  
+  return RYGEL_MEDIA_EXPORT_SQL_FACTORY (g_object_new (RYGEL_MEDIA_EXPORT_TYPE_SQL_FACTORY, NULL));
 }
 
 static void



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