Commit 4a54542c authored by Jeremy White's avatar Jeremy White Committed by Frediano Ziglio

Provide a way to specify the video codecs.

Acked-by: Frediano Ziglio's avatarFrediano Ziglio <fziglio@redhat.com>
parent 942391f3
......@@ -80,6 +80,7 @@ void options_free(options_t *options)
str_replace(&options->on_connect, NULL);
str_replace(&options->on_disconnect, NULL);
str_replace(&options->user_config_file, NULL);
str_replace(&options->codecs, NULL);
}
......@@ -396,6 +397,7 @@ static void options_from_config(options_t *options)
g_free(trust_damage);
options->full_screen_fps = int_option(userkey, systemkey, "spice", "full-screen-fps");
string_option(&options->codecs, userkey, systemkey, "spice", "codecs");
#if defined(HAVE_LIBAUDIT_H)
/* Pick an arbitrary default in the user range. CodeWeavers was founed in 1996, so 1196 it is... */
......
......@@ -62,6 +62,7 @@ typedef struct {
char *uinput_path;
char *on_connect;
char *on_disconnect;
char *codecs;
int audit;
int audit_message_type;
damage_trust_t trust_damage;
......
......@@ -565,6 +565,9 @@ static void set_options(spice_t *s, options_t *options)
if (options->spice_password)
spice_server_set_ticket(s->server, options->spice_password, 0, 0, 0);
if (options->codecs)
spice_server_set_video_codecs(s->server, options->codecs);
spice_server_set_exit_on_disconnect(s->server, options->exit_on_disconnect);
}
......
......@@ -111,6 +111,19 @@
#-----------------------------------------------------------------------------
#full-screen-fps=0
#-----------------------------------------------------------------------------
# codecs
# This configuration field allows you to specify which
# spice codecs to use. An example specification is:
# gstreamer:vp8;gstreamer:h264;spice:mjpeg
# which specifies vp8 first, followed by h264, and then by
# traditional spice mjpeg encoding.
# If no codecs are given, we will allow Spice to choose
# a reasonable default, which is usually spice:mjpeg.
# Default blank.
#-----------------------------------------------------------------------------
#codecs=spice:mjpeg
#-----------------------------------------------------------------------------
# minimize Starts the x11spice gui minimized. Default false.
#-----------------------------------------------------------------------------
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment