[rygel] media-export: Compare two GFiles properly.



commit 6a3995acb7d9d552d2102b5f97b7a8c4998b9aae
Author: Krzesimir Nowak <krnowak openismus com>
Date:   Fri Jan 25 13:53:25 2013 +0100

    media-export: Compare two GFiles properly.

 .../rygel-media-export-root-container.vala         |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/media-export/rygel-media-export-root-container.vala b/src/plugins/media-export/rygel-media-export-root-container.vala
index 762acc9..ad0c068 100644
--- a/src/plugins/media-export/rygel-media-export-root-container.vala
+++ b/src/plugins/media-export/rygel-media-export-root-container.vala
@@ -208,7 +208,7 @@ public class Rygel.MediaExport.RootContainer : TrackableDbContainer {
 
         foreach (var uri in uris) {
             var file = File.new_for_commandline_arg (uri);
-            if (likely (file != home_dir)) {
+            if (likely (!file.equal (home_dir))) {
                 var actual_uri = uri;
 
                 if (likely (pictures_dir != null)) {



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