Change folder_id to row id instead of uuid
[platform/core/api/media-content.git] / src / media_db.c
index f382923..e9a125f 100755 (executable)
@@ -670,8 +670,11 @@ int _media_db_get_folder(filter_h filter, media_folder_cb callback, void *user_d
 
        while (sqlite3_step(stmt) == SQLITE_ROW) {
                media_folder_s *_folder = g_new0(media_folder_s, 1);
-
+#ifdef _USE_TVPD_MODE
                _folder->folder_id = g_strdup((const char *)sqlite3_column_text(stmt, 0));
+#else
+               _folder->folder_id = g_strdup_printf("%lld", sqlite3_column_int64(stmt, 0));
+#endif
                _folder->path = g_strdup((const char *)sqlite3_column_text(stmt, 1));
                _folder->name = g_strdup((const char *)sqlite3_column_text(stmt, 2));
                _folder->storage_type = sqlite3_column_int(stmt, 3);