[Spice-devel] [spice v8] dcc: handle preferred video codec message
Frediano Ziglio
fziglio at redhat.com
Fri Feb 10 12:51:05 UTC 2017
> [0] SPICE_MSGC_DISPLAY_PREFERRED_VIDEO_CODEC_TYPE
>
> This message provides a list of video codecs based on client's order
> of preference.
>
> We duplicate the video codecs array from reds.c and sort it using the
> order of codecs as reference.
>
> This message will not change an ongoing streaming but it could change
> newly created streams depending the rank value of each video codec
> that can be set by spice_server_set_video_codecs()
>
> Signed-off-by: Victor Toso <victortoso at redhat.com>
> ---
> server/dcc-private.h | 5 ++
> server/dcc.c | 126
> +++++++++++++++++++++++++++++++++++++++++++++++
> server/dcc.h | 1 +
> server/display-channel.c | 2 +
> server/stream.c | 5 +-
> 5 files changed, 138 insertions(+), 1 deletion(-)
>
> diff --git a/server/dcc-private.h b/server/dcc-private.h
> index 64b32a7..dd54c70 100644
> --- a/server/dcc-private.h
> +++ b/server/dcc-private.h
> @@ -51,6 +51,11 @@ struct DisplayChannelClientPrivate
> int num_pixmap_cache_items;
> } send_data;
>
> + /* Host prefererred video-codec order sorted with client preferred */
> + GArray *preferred_video_codecs;
I know this patch is important but every time I arrive here I
ask "array of what?" and I close the email.
C has type[] or type*... GArray is an array of everything you want...
I don't like it!
Frediano
More information about the Spice-devel
mailing list