[rygel] server: Fix MediaResource copy constructor



commit f04d48a99f6dc1385c1e288eb712c69f0832fc46
Author: Jens Georg <mail jensge org>
Date:   Sun Aug 2 19:32:20 2015 +0200

    server: Fix MediaResource copy constructor
    
    Copy import_uri instead of accidentally setting it to the uri of the other
    resource.
    
    Signed-off-by: Jens Georg <mail jensge org>

 src/librygel-server/rygel-media-resource.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/librygel-server/rygel-media-resource.vala b/src/librygel-server/rygel-media-resource.vala
index afe1194..961cec2 100644
--- a/src/librygel-server/rygel-media-resource.vala
+++ b/src/librygel-server/rygel-media-resource.vala
@@ -69,7 +69,7 @@ public class Rygel.MediaResource : GLib.Object {
         this.name = name;
         // res block
         this.uri = that.uri;
-        this.import_uri = that.uri;
+        this.import_uri = that.import_uri;
         this.extension = that.extension;
         this.size = that.size;
         this.cleartext_size = that.cleartext_size;



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