[rygel/rygel-0-16] renderer: Set proper track number



commit 6ad1b54005a7c7fec0d50c2d520bac408b0729a1
Author: Jens Georg <jensg openismus com>
Date:   Tue Nov 20 17:07:38 2012 +0100

    renderer: Set proper track number

 src/librygel-renderer/rygel-av-transport.vala |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/librygel-renderer/rygel-av-transport.vala b/src/librygel-renderer/rygel-av-transport.vala
index 3f5e676..d309444 100644
--- a/src/librygel-renderer/rygel-av-transport.vala
+++ b/src/librygel-renderer/rygel-av-transport.vala
@@ -275,6 +275,7 @@ internal class Rygel.AVTransport : Service {
                     this.metadata = _metadata;
                     this.uri = _uri;
                     this.n_tracks = 1;
+                    this.track = 1;
 
                     action.return ();
                 }
@@ -285,8 +286,10 @@ internal class Rygel.AVTransport : Service {
             this.uri = _uri;
             if (_uri == "") {
                 this.n_tracks = 0;
+                this.track = 0;
             } else {
                 this.n_tracks = 1;
+                this.track = 1;
             }
 
             action.return ();



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