summaryrefslogtreecommitdiff
path: root/src/audio/player.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-10-09 07:04:11 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-10-09 07:04:11 +0300
commitbb7bc6fac4fec804846d11c7d77e1b553ba2be6a (patch)
treec170f134b5ac01c29195589cc77ae4598a524eb3 /src/audio/player.c
parent5b58cc76bd08d0e061c5f14506d97ee8dc3b7174 (diff)
Fixed memory leak on tab close
The DocumentWidget was not actually deleted when a tab was closed, only hidden.
Diffstat (limited to 'src/audio/player.c')
-rw-r--r--src/audio/player.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/audio/player.c b/src/audio/player.c
index 5b9d0103..07f41f01 100644
--- a/src/audio/player.c
+++ b/src/audio/player.c
@@ -563,3 +563,9 @@ float streamProgress_Player(const iPlayer *d) {
563 } 563 }
564 return 0; 564 return 0;
565} 565}
566
567iString *metadataLabel_Player(const iPlayer *d) {
568 return newFormat_String("%d-bit %s %d Hz", SDL_AUDIO_BITSIZE(d->decoder->inputFormat),
569 SDL_AUDIO_ISFLOAT(d->decoder->inputFormat) ? "float" : "integer",
570 d->spec.freq);
571}