summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/media_db.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/media_db.c b/src/media_db.c
index 94da86e..b642437 100755
--- a/src/media_db.c
+++ b/src/media_db.c
@@ -1306,7 +1306,7 @@ int _media_db_get_group_item_by_union_select(const char *group_name, filter_h fi
else
snprintf(select_query1, sizeof(select_query1), SELECT_MEDIA_FROM_FOLDER, DB_VIEW_MEDIA, group_name);
- ret = __media_db_make_query(filter, &condition_query1, &option_query1);
+ ret = __media_db_make_query(filter1, &condition_query1, &option_query1);
if (ret != MEDIA_CONTENT_ERROR_NONE) {
SAFE_FREE(condition_query1);
SAFE_FREE(option_query1);
@@ -1319,7 +1319,7 @@ int _media_db_get_group_item_by_union_select(const char *group_name, filter_h fi
else
snprintf(select_query2, sizeof(select_query2), SELECT_MEDIA_FROM_FOLDER, DB_VIEW_MEDIA, group_name);
- ret = __media_db_make_query(filter, &condition_query2, &option_query2);
+ ret = __media_db_make_query(filter2, &condition_query2, &option_query2);
if (ret != MEDIA_CONTENT_ERROR_NONE) {
SAFE_FREE(condition_query1);
SAFE_FREE(option_query1);