Skip to content
Extraits de code Groupes Projets

[FIX] DB: Don't fail when we don't need to back propagate

1 file
+ 2
2
Comparer les modifications
  • Côte à côte
  • En ligne
+ 2
2
@@ -579,14 +579,14 @@ ___database_back_propagate_priority(lkt_db *db)
sqlite3_stmt *stmt = NULL;
/* Currently playing position */
SQLITE_PREPARE(db, stmt, SQL_GET_CURRENT, not_playing_or_no_need_to_back_propagate);
SQLITE_PREPARE(db, stmt, SQL_GET_CURRENT, error);
SQLITE_STEP_ROW(db, stmt, not_playing_or_no_need_to_back_propagate);
currently_playing_position = sqlite3_column_int64(stmt, 0);
sqlite3_finalize(stmt);
/* Next kara with priority > 1 */
SQLITE_PREPARE(db, stmt, SQL_GET_POS_WITH_PRIO_SUP_1, error);
SQLITE_STEP_ROW(db, stmt, error);
SQLITE_STEP_ROW(db, stmt, not_playing_or_no_need_to_back_propagate);
next_kara_with_prio_sup_1 = sqlite3_column_int64(stmt, 0);
priority_to_back_propagate = sqlite3_column_int(stmt, 1);
sqlite3_finalize(stmt);
Chargement en cours