GUAC-1305: Mimetype pointers need not be const.
This commit is contained in:
parent
602285be35
commit
9a3a1bdcde
@ -451,7 +451,7 @@ void guac_client_stream_webp(guac_client* client, guac_socket* socket,
|
|||||||
int guac_client_supports_webp(guac_client* client) {
|
int guac_client_supports_webp(guac_client* client) {
|
||||||
|
|
||||||
#ifdef ENABLE_WEBP
|
#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 */
|
/* Search for WebP mimetype in list of supported image mimetypes */
|
||||||
while (*mimetype != NULL) {
|
while (*mimetype != NULL) {
|
||||||
|
@ -65,20 +65,20 @@ struct guac_client_info {
|
|||||||
* NULL-terminated array of client-supported audio mimetypes. If the client
|
* NULL-terminated array of client-supported audio mimetypes. If the client
|
||||||
* does not support audio at all, this will be NULL.
|
* 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
|
* NULL-terminated array of client-supported video mimetypes. If the client
|
||||||
* does not support video at all, this will be NULL.
|
* 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
|
* NULL-terminated array of client-supported image mimetypes. Though all
|
||||||
* supported image mimetypes will be listed here, it can be safely assumed
|
* supported image mimetypes will be listed here, it can be safely assumed
|
||||||
* that all clients will support at least "image/png" and "image/jpeg".
|
* 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
|
* The DPI of the physical remote display if configured for the optimal
|
||||||
|
Loading…
Reference in New Issue
Block a user