[rygel] media-export: Compare two GFiles properly.
- From: Krzesimir Nowak <krnowak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] media-export: Compare two GFiles properly.
- Date: Wed, 30 Jan 2013 11:15:43 +0000 (UTC)
commit 6ec2bec0e145c01579b13418af3c2e4b35e22d43
Author: Krzesimir Nowak <krnowak openismus com>
Date: Wed Jan 30 12:03:18 2013 +0100
media-export: Compare two GFiles properly.
.../rygel-media-export-harvesting-task.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/media-export/rygel-media-export-harvesting-task.vala b/src/plugins/media-export/rygel-media-export-harvesting-task.vala
index 9ba5cea..fe37c27 100644
--- a/src/plugins/media-export/rygel-media-export-harvesting-task.vala
+++ b/src/plugins/media-export/rygel-media-export-harvesting-task.vala
@@ -306,7 +306,7 @@ public class Rygel.MediaExport.HarvestingTask : Rygel.StateMachine,
}
var entry = this.files.peek ();
- if (entry == null || file != entry.file) {
+ if (entry == null || !file.equal (entry.file)) {
// this event may be triggered by another instance
// just ignore it
return;
@@ -348,7 +348,7 @@ public class Rygel.MediaExport.HarvestingTask : Rygel.StateMachine,
private void on_extractor_error_cb (File file, Error error) {
var entry = this.files.peek ();
- if (entry == null || file != entry.file) {
+ if (entry == null || !file.equal (entry.file)) {
// this event may be triggered by another instance
// just ignore it
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]