- pa_stream_writable_size() returns (size_t) -1 on error
- fix missing cast in alsa client sound channel code
if (status < 0)
{
WLog_ERR(TAG, "status: %d\n", status);
- rdpsnd_alsa_close(alsa);
- rdpsnd_alsa_open((rdpsndDevicePlugin*) alsa, NULL, alsa->latency);
+ rdpsnd_alsa_close(device);
+ rdpsnd_alsa_open(device, NULL, alsa->latency);
break;
}
while ((length = pa_stream_writable_size(pulse->stream)) == 0)
pa_threaded_mainloop_wait(pulse->mainloop);
- if (length < 0)
+ if (length == (size_t) -1)
break;
if (length > size)
{
TSMFPulseAudioDevice* pulse = (TSMFPulseAudioDevice*) audio;
const BYTE* src;
- int len;
+ size_t len;
int ret;
DEBUG_TSMF("data_size %"PRIu32"", data_size);
pa_threaded_mainloop_wait(pulse->mainloop);
}
- if (len < 0)
+ if (len == (size_t) -1)
break;
if (len > data_size)