diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-04-21 13:46:57 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-04-21 13:46:57 +0300 |
commit | bbbbc8e18879a5495be1cff78ca78be7a44ac25b (patch) | |
tree | cf24ab2e663e6a70250346328825f9c4a4eff45a /src/media.c | |
parent | 8b12e6f56fddc4a10e74591ebf6d9af38a9f0bb5 (diff) |
iOS: Background audio; MP3/AAC playback
Diffstat (limited to 'src/media.c')
-rw-r--r-- | src/media.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/media.c b/src/media.c index c3b38ae3..1313b7da 100644 --- a/src/media.c +++ b/src/media.c | |||
@@ -312,13 +312,13 @@ iBool setData_Media(iMedia *d, iGmLinkId linkId, const iString *mime, const iBlo | |||
312 | audio = at_PtrArray(&d->audio, existing - 1); | 312 | audio = at_PtrArray(&d->audio, existing - 1); |
313 | iAssert(equal_String(&audio->props.mime, mime)); /* MIME cannot change */ | 313 | iAssert(equal_String(&audio->props.mime, mime)); /* MIME cannot change */ |
314 | updateSourceData_Player(audio->player, mime, data, append_PlayerUpdate); | 314 | updateSourceData_Player(audio->player, mime, data, append_PlayerUpdate); |
315 | if (!isPartial) { | ||
316 | updateSourceData_Player(audio->player, NULL, NULL, complete_PlayerUpdate); | ||
317 | } | ||
315 | if (!isStarted_Player(audio->player)) { | 318 | if (!isStarted_Player(audio->player)) { |
316 | /* Maybe the previous updates didn't have enough data. */ | 319 | /* Maybe the previous updates didn't have enough data. */ |
317 | start_Player(audio->player); | 320 | start_Player(audio->player); |
318 | } | 321 | } |
319 | if (!isPartial) { | ||
320 | updateSourceData_Player(audio->player, NULL, NULL, complete_PlayerUpdate); | ||
321 | } | ||
322 | } | 322 | } |
323 | } | 323 | } |
324 | else if ((existing = findLinkDownload_Media(d, linkId)) != 0) { | 324 | else if ((existing = findLinkDownload_Media(d, linkId)) != 0) { |