Add check+load for wav encoder.
This commit is contained in:
parent
c1a4951363
commit
3163825568
@ -66,6 +66,7 @@
|
||||
|
||||
#include "audio.h"
|
||||
#include "ogg_encoder.h"
|
||||
#include "wav_encoder.h"
|
||||
|
||||
#include "client.h"
|
||||
#include "guac_handlers.h"
|
||||
@ -138,6 +139,13 @@ boolean rdp_freerdp_pre_connect(freerdp* instance) {
|
||||
break;
|
||||
}
|
||||
|
||||
// If wav is supported, done.
|
||||
if (strcmp(mimetype, wav_encoder->mimetype) == 0) {
|
||||
guac_client_log_info(client, "Loading wav encoder.");
|
||||
guac_client_data->audio = audio_stream_alloc(client, wav_encoder);
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/* If an encoding is available, load the sound plugin */
|
||||
|
Loading…
Reference in New Issue
Block a user