[Spice-devel] [spice-server v2 06/10] sound: Remove code from spice_server_record_get_samples()
Frediano Ziglio
fziglio at redhat.com
Wed Jan 25 16:41:01 UTC 2017
>
> On Tue, Jan 24, 2017 at 08:51:00AM -0500, Frediano Ziglio wrote:
> > >
> > > It's ok to remove it because ?
> > >
> > > Based on a patch from Frediano Ziglio <fziglio at redhat.com>
> > >
> > > Signed-off-by: Christophe Fergeau <cfergeau at redhat.com>
> >
> > Because I hate polling and was removed time ago :)
> >
> > Really, now RedChannelClient try to send/receive data when it can
> > reducing latency.
> > This code was here as it was possible that some data was still
> > pending on the receiving queue due to some polling so it
> > try to read queue directly if buffer was not fill correctly.
>
> So before switching to RedChannelClient, this code should be needed, but
> after the switch, it can be removed because the polling is no longer
> necessary?
>
> Christophe
>
Even now. snd_receive is called by the event loop when data
are available (by snd_event).
Forcing another read seems a bit useless.
Frediano
More information about the Spice-devel
mailing list