[rygel] media-export: Check for container emptiness with is_empty property.



commit 6bbb1740427bbbd5086ac79d3039b3b6ff8cec90
Author: Krzesimir Nowak <krnowak openismus com>
Date:   Mon Feb 4 13:10:22 2013 +0100

    media-export: Check for container emptiness with is_empty property.

 .../rygel-media-export-media-cache.vala            |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/media-export/rygel-media-export-media-cache.vala b/src/plugins/media-export/rygel-media-export-media-cache.vala
index 2958156..79051e4 100644
--- a/src/plugins/media-export/rygel-media-export-media-cache.vala
+++ b/src/plugins/media-export/rygel-media-export-media-cache.vala
@@ -660,7 +660,7 @@ public class Rygel.MediaExport.MediaCache : Object {
                                 type,
                                 parent,
                                 object.modified,
-                                object.uris.size == 0 ? null : object.uris[0],
+                                object.uris.is_empty ? null : object.uris[0],
                                 object.object_update_id,
                                 -1,
                                 -1



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