Make audio streams threadsafe.

This commit is contained in:
Michael Jumper 2013-07-07 00:23:18 -07:00
parent 09588f53e5
commit 73b70ec072

View File

@ -66,6 +66,9 @@ audio_stream* audio_stream_alloc(guac_client* client, audio_encoder* encoder) {
audio->encoder = encoder;
audio->stream = guac_client_alloc_stream(client);
/* Ensure socket within new stream is threadsafe */
guac_socket_require_threadsafe(audio->stream->socket);
return audio;
}