playlist_state: declare local variable as enum

This commit is contained in:
Max Kellermann 2011-02-23 09:10:21 +01:00
parent 8cd91fabf9
commit b57330cf75
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ playlist_state_restore(const char *line, FILE *fp, GString *buffer,
{ {
int current = -1; int current = -1;
int seek_time = 0; int seek_time = 0;
int state = PLAYER_STATE_STOP; enum player_state state = PLAYER_STATE_STOP;
bool random_mode = false; bool random_mode = false;
if (!g_str_has_prefix(line, PLAYLIST_STATE_FILE_STATE)) if (!g_str_has_prefix(line, PLAYLIST_STATE_FILE_STATE))