Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
spice
x11spice
Commits
4a54542c
Commit
4a54542c
authored
Aug 22, 2019
by
Jeremy White
Committed by
Frediano Ziglio
May 06, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Provide a way to specify the video codecs.
Acked-by:
Frediano Ziglio
<
fziglio@redhat.com
>
parent
942391f3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
0 deletions
+19
-0
src/options.c
src/options.c
+2
-0
src/options.h
src/options.h
+1
-0
src/spice.c
src/spice.c
+3
-0
src/xdg/x11spice/x11spice.conf
src/xdg/x11spice/x11spice.conf
+13
-0
No files found.
src/options.c
View file @
4a54542c
...
...
@@ -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... */
...
...
src/options.h
View file @
4a54542c
...
...
@@ -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
;
...
...
src/spice.c
View file @
4a54542c
...
...
@@ -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
);
}
...
...
src/xdg/x11spice/x11spice.conf
View file @
4a54542c
...
...
@@ -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.
#-----------------------------------------------------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment