core: Reset number of tracks to 0
authorJens Georg <mail@jensge.org>
Fri, 11 May 2012 11:55:19 +0000 (13:55 +0200)
committerJens Georg <mail@jensge.org>
Mon, 28 May 2012 17:11:58 +0000 (19:11 +0200)
src/rygel/rygel-av-transport.vala

index 8b4850b..f8e40ce 100644 (file)
@@ -274,7 +274,11 @@ internal class Rygel.AVTransport : Service {
             this.session.queue_message (message, null);
         } else {
             this.uri = _uri;
-            this.n_tracks = 1;
+            if (_uri == "") {
+                this.n_tracks = 0;
+            } else {
+                this.n_tracks = 1;
+            }
 
             action.return ();
         }