[rygel] media-export: Fix crash on file removal
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] media-export: Fix crash on file removal
- Date: Wed, 13 Apr 2011 19:36:02 +0000 (UTC)
commit 1c90a7cae994f6cf7a1d5a8d1faf93f8aa99aa11
Author: Jens Georg <mail jensge org>
Date: Wed Apr 13 19:49:32 2011 +0300
media-export: Fix crash on file removal
.../media-export/rygel-media-export-harvester.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/media-export/rygel-media-export-harvester.vala b/src/plugins/media-export/rygel-media-export-harvester.vala
index 0f92646..3c8861a 100644
--- a/src/plugins/media-export/rygel-media-export-harvester.vala
+++ b/src/plugins/media-export/rygel-media-export-harvester.vala
@@ -177,7 +177,7 @@ internal class Rygel.MediaExport.Harvester : GLib.Object {
// change
var id = MediaCache.get_id (file);
var object = cache.get_object (id);
- var parent = object.parent;
+ var parent = null as MediaContainer;
while (object != null) {
parent = object.parent;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]