Add check+load for wav encoder.

This commit is contained in:
Michael Jumper 2012-11-01 14:26:36 -07:00
parent c1a4951363
commit 3163825568

View File

@ -66,6 +66,7 @@
#include "audio.h" #include "audio.h"
#include "ogg_encoder.h" #include "ogg_encoder.h"
#include "wav_encoder.h"
#include "client.h" #include "client.h"
#include "guac_handlers.h" #include "guac_handlers.h"
@ -138,6 +139,13 @@ boolean rdp_freerdp_pre_connect(freerdp* instance) {
break; 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 */ /* If an encoding is available, load the sound plugin */