diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/audio/player.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/audio/player.c b/src/audio/player.c index 762cff7a..d2ec9870 100644 --- a/src/audio/player.c +++ b/src/audio/player.c | |||
@@ -796,8 +796,10 @@ iString *metadataLabel_Player(const iPlayer *d) { | |||
796 | } | 796 | } |
797 | unlock_Mutex(&d->decoder->tagMutex); | 797 | unlock_Mutex(&d->decoder->tagMutex); |
798 | } | 798 | } |
799 | appendFormat_String(meta, "%d-bit %s %d Hz", SDL_AUDIO_BITSIZE(d->decoder->inputFormat), | 799 | if (d->decoder) { |
800 | SDL_AUDIO_ISFLOAT(d->decoder->inputFormat) ? "float" : "integer", | 800 | appendFormat_String(meta, "%d-bit %s %d Hz", SDL_AUDIO_BITSIZE(d->decoder->inputFormat), |
801 | d->spec.freq); | 801 | SDL_AUDIO_ISFLOAT(d->decoder->inputFormat) ? "float" : "integer", |
802 | d->spec.freq); | ||
803 | } | ||
802 | return meta; | 804 | return meta; |
803 | } | 805 | } |