summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-04-21 13:46:57 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-04-21 13:46:57 +0300
commitbbbbc8e18879a5495be1cff78ca78be7a44ac25b (patch)
treecf24ab2e663e6a70250346328825f9c4a4eff45a /src/ui
parent8b12e6f56fddc4a10e74591ebf6d9af38a9f0bb5 (diff)
iOS: Background audio; MP3/AAC playback
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/documentwidget.c3
-rw-r--r--src/ui/window.c1
2 files changed, 4 insertions, 0 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c
index d847c19f..be831829 100644
--- a/src/ui/documentwidget.c
+++ b/src/ui/documentwidget.c
@@ -710,6 +710,9 @@ static uint32_t mediaUpdateInterval_DocumentWidget_(const iDocumentWidget *d) {
710 if (document_App() != d) { 710 if (document_App() != d) {
711 return 0; 711 return 0;
712 } 712 }
713 if (get_Window()->isDrawFrozen) {
714 return 0;
715 }
713 static const uint32_t invalidInterval_ = ~0u; 716 static const uint32_t invalidInterval_ = ~0u;
714 uint32_t interval = invalidInterval_; 717 uint32_t interval = invalidInterval_;
715 iConstForEach(PtrArray, i, &d->visibleMedia) { 718 iConstForEach(PtrArray, i, &d->visibleMedia) {
diff --git a/src/ui/window.c b/src/ui/window.c
index 73590d7f..b400dced 100644
--- a/src/ui/window.c
+++ b/src/ui/window.c
@@ -1887,6 +1887,7 @@ iBool processEvent_Window(iWindow *d, const SDL_Event *ev) {
1887 SDL_ShowWindow(d->win); 1887 SDL_ShowWindow(d->win);
1888 } 1888 }
1889 postRefresh_App(); 1889 postRefresh_App();
1890 postCommand_App("media.player.update"); /* in case a player needs updating */
1890 return iTrue; 1891 return iTrue;
1891 } 1892 }
1892 if (processEvent_Touch(&event)) { 1893 if (processEvent_Touch(&event)) {