mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-gtk
synced 2026-01-21 04:01:12 +00:00
gtk: warn only if audio playback time is not monotonic
This commit is contained in:
parent
1f3b5e311a
commit
06bdd3d459
@ -234,8 +234,13 @@ static void playback_handle_data(SpiceChannel *channel, spice_msg_in *in)
|
||||
spice_playback_channel *c = SPICE_PLAYBACK_CHANNEL(channel)->priv;
|
||||
SpiceMsgPlaybackPacket *packet = spice_msg_in_parsed(in);
|
||||
|
||||
#ifdef DEBUG
|
||||
SPICE_DEBUG("%s: time %d data %p size %d", __FUNCTION__,
|
||||
packet->time, packet->data, packet->data_size);
|
||||
#endif
|
||||
|
||||
if (c->last_time > packet->time)
|
||||
g_warn_if_reached();
|
||||
|
||||
c->last_time = packet->time;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user