stream-channel: Add preferred video codec capability

Enterprise / Virtualization / SPICE - Kevin Pouget [redhat.com] - 2 September 2019 08:53 EDT

This patch enables the SPICE_DISPLAY_CAP_PREF_VIDEO_CODEC_TYPE capability for the stream-channel.

video_stream_parse_preferred_codecs: new function for parsing the SPICE protocol message. This code used to in inside dcc_handle_preferred_video_codec_type.

struct StreamChannelClient::client_preferred_video_codecs: new field.

9ccf7bee stream-channel: Add preferred video codec capability
server/dcc.c | 30 +-----------------------------
server/stream-channel.c | 38 ++++++++++++++++++++++++++++++++++++++
server/video-stream.c | 35 +++++++++++++++++++++++++++++++++++
server/video-stream.h | 1 +
4 files changed, 75 insertions(+), 29 deletions(-)

Upstream: cgit.freedesktop.org


  • Share