Acked-by: Christophe Fergeau <[email protected]> with that squashed in
Christophe
On Fri, Apr 07, 2017 at 03:06:55PM -0500, Jonathon Jongsma wrote:
> ---
> server/sound.c | 8 ++++++--
> 1 file changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/server/sound.c b/server/sound.c
> index eb0220f..275248c 100644
> --- a/server/sound.c
> +++ b/server/sound.c
> @@ -317,13 +317,17 @@ static bool snd_record_handle_write(RecordChannelClient
> *record_client, size_t s
> static
> const char* spice_audio_data_mode_to_string(gint mode)
> {
> - static const char *str[] = {
> + static const char * const str[] = {
> [ SPICE_AUDIO_DATA_MODE_INVALID ] = "invalid",
> [ SPICE_AUDIO_DATA_MODE_RAW ] = "raw",
> [ SPICE_AUDIO_DATA_MODE_CELT_0_5_1 ] = "celt",
> [ SPICE_AUDIO_DATA_MODE_OPUS ] = "opus",
> };
> - return (mode >= 0 && mode < G_N_ELEMENTS(str)) ? str[mode] : "unknown
> audio codec";
> + if (mode >= 0 && mode < G_N_ELEMENTS(str)) {
> + return str[mode];
> + }
> +
> + return "unknown audio codec";
> }
>
> static bool
> --
> 2.9.3
>
> _______________________________________________
> Spice-devel mailing list
> [email protected]
> https://lists.freedesktop.org/mailman/listinfo/spice-devel
signature.asc
Description: PGP signature
_______________________________________________ Spice-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/spice-devel
