MC_SERVER_FIELD_SERVER_STATE,
MC_SERVER_FIELD_PLAYBACK_STATE,
MC_SERVER_FIELD_PLAYBACK_POSITION,
+ MC_SERVER_FIELD_PLAYLIST_INDEX,
MC_SERVER_FIELD_TITLE,
MC_SERVER_FIELD_ARTIST,
MC_SERVER_FIELD_ALBUM,
mc_retvm_if(handle == NULL, MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER, "Handle is NULL");
mc_retvm_if(server_name == NULL, MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER, "server_name is NULL");
- sql_str = sqlite3_mprintf("UPDATE '%q' SET playback_state=%d, playback_position=%llu, index=%Q;", server_name, playback_state, playback_position, index);
+ sql_str = sqlite3_mprintf("UPDATE '%q' SET playback_state=%d, playback_position=%llu, playlist_index=%Q;", server_name, playback_state, playback_position, index);
ret = __mc_db_update_db(handle, sql_str);
mc_retvm_if(server_name == NULL, MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER, "server_name is NULL");
mc_retvm_if(playback == NULL, MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER, "playback is NULL");
- sql_str = sqlite3_mprintf("SELECT playback_state, playback_position, index FROM '%q';", server_name);
+ sql_str = sqlite3_mprintf("SELECT playback_state, playback_position, playlist_index FROM '%q';", server_name);
mc_retvm_if(!MC_STRING_VALID(sql_str), MEDIA_CONTROLLER_ERROR_INVALID_OPERATION, "SQL string is null");
ret = sqlite3_prepare_v2(db_handle, sql_str, strlen(sql_str), &stmt, NULL);
server_state INTEGER DEFAULT 1, \
playback_state INTEGER DEFAULT 0, \
playback_position INTEGER DEFAULT 0, \
- index TEXT, \
+ playlist_index TEXT, \
title TEXT, \
artist TEXT, \
album TEXT, \