[Spice-devel] [PATCH spice-gtk] channel-display: Use proper sized maximum
Frediano Ziglio
fziglio at redhat.com
Fri Jun 28 07:46:26 UTC 2019
ping
>
> "audio_delay" is 32 bit as defined by protocol.
>
> Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
> ---
> src/channel-display.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/channel-display.c b/src/channel-display.c
> index cda0fcdd..542920bb 100644
> --- a/src/channel-display.c
> +++ b/src/channel-display.c
> @@ -1473,7 +1473,7 @@ static void
> display_update_stream_report(SpiceDisplayChannel *channel, uint32_t
> if (spice_session_is_playback_active(session)) {
> report.audio_delay =
> spice_session_get_playback_latency(session);
> } else {
> - report.audio_delay = UINT_MAX;
> + report.audio_delay = UINT32_MAX;
> }
>
> msg = spice_msg_out_new(SPICE_CHANNEL(channel),
> SPICE_MSGC_DISPLAY_STREAM_REPORT);
More information about the Spice-devel
mailing list