[rygel] media-export: Fix (parent != NULL) assertion
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] media-export: Fix (parent != NULL) assertion
- Date: Mon, 13 Sep 2010 11:28:56 +0000 (UTC)
commit e50349a710541d18043f54d1c88ec07b45084c82
Author: Jens Georg <mail jensge org>
Date: Sun Sep 5 11:06:06 2010 +0200
media-export: Fix (parent != NULL) assertion
.../media-export/rygel-media-export-harvester.vala | 5 ++++-
1 files changed, 4 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 604ddd1..c879bce 100644
--- a/src/plugins/media-export/rygel-media-export-harvester.vala
+++ b/src/plugins/media-export/rygel-media-export-harvester.vala
@@ -139,7 +139,10 @@ internal class Rygel.MediaExport.Harvester : GLib.Object {
switch (event) {
case FileMonitorEvent.CREATED:
case FileMonitorEvent.CHANGES_DONE_HINT:
- if (this.file_filter == null ||
+ var type = file.query_file_type (FileQueryInfoFlags.NONE,
+ this.cancellable);
+ if (type == FileType.DIRECTORY ||
+ this.file_filter == null ||
this.file_filter.match (file.get_uri ())) {
debug ("Trying to harvest %s because of %d",
file.get_uri (),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]