Make audio streams threadsafe.
This commit is contained in:
parent
09588f53e5
commit
73b70ec072
@ -66,6 +66,9 @@ audio_stream* audio_stream_alloc(guac_client* client, audio_encoder* encoder) {
|
|||||||
audio->encoder = encoder;
|
audio->encoder = encoder;
|
||||||
audio->stream = guac_client_alloc_stream(client);
|
audio->stream = guac_client_alloc_stream(client);
|
||||||
|
|
||||||
|
/* Ensure socket within new stream is threadsafe */
|
||||||
|
guac_socket_require_threadsafe(audio->stream->socket);
|
||||||
|
|
||||||
return audio;
|
return audio;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user