[rygel/rygel-0-12] media-export: Fix contains search
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel/rygel-0-12] media-export: Fix contains search
- Date: Mon, 19 Sep 2011 07:09:41 +0000 (UTC)
commit a7ff03fa9290be4d4fc9f3f59a0de2fef81dc7d9
Author: Jens Georg <mail jensge org>
Date: Mon Sep 19 09:08:46 2011 +0200
media-export: Fix contains search
Haystack and needle were switched.
.../media-export/rygel-media-export-database.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/media-export/rygel-media-export-database.vala b/src/plugins/media-export/rygel-media-export-database.vala
index e35cf85..5dea5fa 100644
--- a/src/plugins/media-export/rygel-media-export-database.vala
+++ b/src/plugins/media-export/rygel-media-export-database.vala
@@ -47,9 +47,9 @@ internal class Rygel.MediaExport.Database : SqliteWrapper {
return;
}
- var pattern = Regex.escape_string (args[0].to_text ());
+ var pattern = Regex.escape_string (args[1].to_text ());
if (Regex.match_simple (pattern,
- args[1].to_text (),
+ args[0].to_text (),
RegexCompileFlags.CASELESS)) {
context.result_int (1);
} else {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]