diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-06-10 07:08:30 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-06-10 07:08:30 +0300 |
commit | 99044467586a5a37c796a7786834359dfaf30a2c (patch) | |
tree | 629905f08c354049172101ff83de96976c2bba4e /src/audio/player.c | |
parent | fdfd11b8a1a2d00c850039c8237208010236f765 (diff) |
Media: Estimate memory use
In-memory images, audio, and downloads are included in RAM usage in Debug Information.
Diffstat (limited to 'src/audio/player.c')
-rw-r--r-- | src/audio/player.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/audio/player.c b/src/audio/player.c index 9e026561..a2a3955b 100644 --- a/src/audio/player.c +++ b/src/audio/player.c | |||
@@ -724,6 +724,13 @@ void updateSourceData_Player(iPlayer *d, const iString *mimeType, const iBlock * | |||
724 | unlock_Mutex(&input->mtx); | 724 | unlock_Mutex(&input->mtx); |
725 | } | 725 | } |
726 | 726 | ||
727 | size_t sourceDataSize_Player(const iPlayer *d) { | ||
728 | lock_Mutex(&d->data->mtx); | ||
729 | const size_t size = size_Block(&d->data->data); | ||
730 | unlock_Mutex(&d->data->mtx); | ||
731 | return size; | ||
732 | } | ||
733 | |||
727 | iBool start_Player(iPlayer *d) { | 734 | iBool start_Player(iPlayer *d) { |
728 | if (isStarted_Player(d)) { | 735 | if (isStarted_Player(d)) { |
729 | return iFalse; | 736 | return iFalse; |