summaryrefslogtreecommitdiff
path: root/src/media.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/media.c')
-rw-r--r--src/media.c6
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) {