mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-01-11 16:55:33 +00:00
reds: Enable mm_time adjustments on startup
This reinstates the reds_enable_mm_time() call in do_spice_init() that was removed by commitc541d7e29d. We send mm_time adjustments to the client whenever there is no audio playback. There is no audio playback on startup. Therefore mm_time_enabled must be true on startup. QED. This fixes adjusting the client mm_time whenever playing a silent video (or full desktop stream) when no sound has been played before such as when using Xspice, booting an OS with no startup or login jingle, or possibly when migrating a VM (per commit1c154ea5ec). Signed-off-by: Francois Gouget <fgouget@codeweavers.com> Acked-by: Frediano Ziglio <fziglio@redhat.com>
This commit is contained in:
parent
07adcce16e
commit
d09c9b43e0
@ -3570,6 +3570,11 @@ static int do_spice_init(RedsState *reds, SpiceCoreInterface *core_interface)
|
||||
if (!(reds->mig_timer = reds->core.timer_add(&reds->core, migrate_timeout, reds))) {
|
||||
spice_error("migration timer create failed");
|
||||
}
|
||||
/* Note that this will not actually send the mm_time to the client because
|
||||
* the main channel is not connected yet. This would have been redundant
|
||||
* with the RED_PIPE_ITEM_TYPE_MAIN_INIT message anyway.
|
||||
*/
|
||||
reds_enable_mm_time(reds);
|
||||
|
||||
if (reds_init_net(reds) < 0) {
|
||||
spice_warning("Failed to open SPICE sockets");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user