server: Small coding-style fixes
authorJens Georg <jensg@openismus.com>
Thu, 3 Jan 2013 11:28:31 +0000 (12:28 +0100)
committerJens Georg <jensg@openismus.com>
Mon, 27 May 2013 11:47:10 +0000 (13:47 +0200)
src/librygel-server/rygel-http-server.vala
src/librygel-server/rygel-music-item.vala

index f68e7ae..f6aa08c 100644 (file)
@@ -49,7 +49,7 @@ internal class Rygel.HTTPServer : Rygel.TranscodeManager, Rygel.StateMachine {
     }
 
     public async void run () {
-        context.server.add_handler (this.path_root, server_handler);
+        context.server.add_handler (this.path_root, this.server_handler);
         context.server.request_aborted.connect (this.on_request_aborted);
         context.server.request_started.connect (this.on_request_started);
 
index 288c229..73b5a5b 100644 (file)
@@ -97,18 +97,10 @@ public class Rygel.MusicItem : AudioItem {
         }
     }
 
-    private string get_first (GLib.List<DIDLLiteContributor>? contributors) {
-        if (contributors != null) {
-            return contributors.data.name;
-        }
-
-        return "";
-    }
-
     internal override void apply_didl_lite (DIDLLiteObject didl_object) {
         base.apply_didl_lite (didl_object);
 
-        this.artist = get_first (didl_object.get_artists ());
+        this.artist = this.get_first (didl_object.get_artists ());
         this.track_number = didl_object.track_number;
         this.album = didl_object.album;
         this.genre = didl_object.genre;
@@ -165,4 +157,13 @@ public class Rygel.MusicItem : AudioItem {
                                                               null);
         }
     }
+
+    private string get_first (GLib.List<DIDLLiteContributor>? contributors) {
+        if (contributors != null) {
+            return contributors.data.name;
+        }
+
+        return "";
+    }
+
 }