[libdmapsharing] Fix error in apply_filter



commit 82ed682febae1a314501a140e0d5106c09b12fee
Author: W. Michael Petullo <mike flyn org>
Date:   Sun Aug 22 21:38:58 2010 -0500

    Fix error in apply_filter
    
    Fix an error in apply_filter that caused the function to improperly handle
    something like "('dmap.itemid:x','dmap.itemid:y')"
    Signed-off-by: W. Michael Petullo <mike flyn org>

 libdmapsharing/dmap-db.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libdmapsharing/dmap-db.c b/libdmapsharing/dmap-db.c
index 1c2ff3c..1286efe 100644
--- a/libdmapsharing/dmap-db.c
+++ b/libdmapsharing/dmap-db.c
@@ -256,7 +256,7 @@ apply_filter (gpointer id, DMAPRecord *record, gpointer data)
 			if (g_strcmp0 (query_key, "dmap.itemid") == 0) {
 				if (GPOINTER_TO_UINT (id) == atoi (query_value)) {
 					accept = TRUE;
-					continue;
+					break;
 				}
 			};
 



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