From 1e6003b4de7516031d3cf823c5e0e0fa38457b0b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jaakko=20Kera=CC=88nen?= jaakko.keranen@iki.fi
Date: Mon, 4 Dec 2023 11:04:56 +0200
Subject: [PATCH 1/1] Media: Fixed premature notification about audio playback
Only notify when the Player has actually started and not when we
just attempted to do so.
src/media.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/media.c b/src/media.c
index df90fd6f..b9d66dd9 100644
--- a/src/media.c
+++ b/src/media.c
@@ -469,8 +469,9 @@ iBool setData_Media(iMedia *d, iGmLinkId linkId, const iString *mime, const iBlo
}
pushBack_PtrArray(&d->items[audio_MediaType], audio);
/* Start playing right away. */
start_Player(audio->player);
postCommandf_App("media.player.started player:%p", audio->player);
if (start_Player(audio->player)) {
postCommandf_App("media.player.started player:%p", audio->player);
}
isNew = iTrue;
#endif /* LAGRANGE_ENABLE_AUDIO */
}
--
2.25.1
text/plain
This content has been proxied by September (ba2dc).