GUAC-1305: Mimetype pointers need not be const.

This commit is contained in:
Michael Jumper 2015-09-24 12:21:15 -07:00
parent 602285be35
commit 9a3a1bdcde
2 changed files with 4 additions and 4 deletions

View File

@ -451,7 +451,7 @@ void guac_client_stream_webp(guac_client* client, guac_socket* socket,
int guac_client_supports_webp(guac_client* client) {
#ifdef ENABLE_WEBP
const char** mimetype = client->info.image_mimetypes;
char** mimetype = client->info.image_mimetypes;
/* Search for WebP mimetype in list of supported image mimetypes */
while (*mimetype != NULL) {

View File

@ -65,20 +65,20 @@ struct guac_client_info {
* NULL-terminated array of client-supported audio mimetypes. If the client
* does not support audio at all, this will be NULL.
*/
const char** audio_mimetypes;
char** audio_mimetypes;
/**
* NULL-terminated array of client-supported video mimetypes. If the client
* does not support video at all, this will be NULL.
*/
const char** video_mimetypes;
char** video_mimetypes;
/**
* NULL-terminated array of client-supported image mimetypes. Though all
* supported image mimetypes will be listed here, it can be safely assumed
* that all clients will support at least "image/png" and "image/jpeg".
*/
const char** image_mimetypes;
char** image_mimetypes;
/**
* The DPI of the physical remote display if configured for the optimal