mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
[Coverity] playback.c audio_auto_change_frequency check for valid id3
Change-Id: Ia213134c690f4c1de16afba38eea740825558280
This commit is contained in:
parent
eaeaac598d
commit
d1aeb7db9d
1 changed files with 2 additions and 0 deletions
|
@ -4054,6 +4054,8 @@ static unsigned long audio_guess_frequency(struct mp3entry *id3)
|
|||
|
||||
static bool audio_auto_change_frequency(struct mp3entry *id3, bool play)
|
||||
{
|
||||
if (!valid_mp3entry(id3))
|
||||
return false;
|
||||
unsigned long guessed_frequency = global_settings.play_frequency == 0 ? audio_guess_frequency(id3) : 0;
|
||||
if (guessed_frequency && mixer_get_frequency() != guessed_frequency)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue