player: removed player_control.fileTime
This variable is superfluous, it is only used to copy its value to player_control.totalTime. Since the original source of this value (song->tag->time) will still be available at this point, we can safely remove fileTime.
This commit is contained in:
@@ -60,7 +60,8 @@ static int waitOnDecode(int *decodeWaitedOn)
|
||||
return -1;
|
||||
}
|
||||
|
||||
pc.totalTime = pc.fileTime;
|
||||
pc.totalTime = pc.next_song->tag != NULL
|
||||
? pc.next_song->tag->time : 0;
|
||||
pc.bitRate = 0;
|
||||
audio_format_clear(&pc.audio_format);
|
||||
*decodeWaitedOn = 1;
|
||||
|
Reference in New Issue
Block a user