Commit Graph

37 Commits

Author SHA1 Message Date
Frediano Ziglio
bedd2e1bcb syntax-check: Add missing contributor name to AUTHORS
Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
2025-04-25 08:26:23 +01:00
Frediano Ziglio
8af20a7cf1 syntax-check: Add missing contributor name to AUTHORS
Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
2025-03-15 10:19:55 +00:00
Michael Scherle
da26dd87dc ci: Fix websocket-autobahn job
Last Automat library fails to install on the container.
Similar to 71a1b112.

Signed-off-by: Michael Scherle <michael.scherle@rz.uni-freiburg.de>
2024-11-20 11:14:03 +01:00
Frediano Ziglio
1372edae95 syntax-check: Add missing contributor name to AUTHORS
Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
2024-05-28 21:43:20 +01:00
Vivek Kasireddy
3208be4521 gstreamer-encoder: Use an env var to override converter format
If we use the x264enc encoder to encode a stream, then videoconvert
would convert the BGRx data into Y444, which is the preferred format
for x264enc. However, some decoders particularly the ones that are
h/w based cannot work with Y444 if it was the format used by the
encoder. Therefore, to address these situations, we need a way to
override the format used during the encoding stage which can be
accomplished by using the environment variable introduced in this
patch: SPICE_CONVERTER_PREFERRED_FORMAT.

For example, using NV12 as the output format for the videoconvert
element would allow us to pair a s/w based encoder (such as x264enc)
with a h/w based decoder (such as msdkh264dec) for decoding the
stream as most h/w based decoders only work with NV12 format given
its popularity.

Note that choosing an encoder format such as NV12 over Y444 would
probably result in decreased video quality although it would be
compatible with more decoders. Ideally, the client and server need
to negotiate a suitable format dynamically but the current
capabilities do not allow for such exchange.

Cc: Frediano Ziglio <freddy77@gmail.com>
Cc: Dongwon Kim <dongwon.kim@intel.com>
Based-on-patch-by: Hazwan Arif Mazlan <hazwan.arif.mazlan@intel.com>
Signed-off-by: Jin Chung Teng <jin.chung.teng@intel.com>
Signed-off-by: Vivek Kasireddy <vivek.kasireddy@intel.com>
Acked-by: Frediano Ziglio <freddy77@gmail.com>
2023-11-15 18:04:56 +00:00
Biswapriyo Nath
3dfd5243c7 smartcard: Fix compiling for Windows platform
This fixes the following compiler error while targeting Windows platform.

../../server/smartcard.cpp:20:10: fatal error: arpa/inet.h: No such file or directory
   20 | #include <arpa/inet.h>
      |          ^~~~~~~~~~~~~

Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Acked-by: Frediano Ziglio <freddy77@gmail.com>
2023-05-30 19:44:15 +01:00
Frediano Ziglio
95702f1588 syntax-check: Add missing contributor name to AUTHORS
For previous commit a5d1d957d6
(cfr "sound: Fix pointer arithmetic in snd_record_handle_write()")

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
2023-05-10 10:52:47 +01:00
Antonio Larrosa
46e3a57ccd Fix build with gstreamer 1.20.x
gstreamer-plugins-base 1.20 includes a new member in the
GstAppSinkCallbacks struct:

 gboolean      (*new_event)        (GstAppSink *appsink, gpointer user_data);

So it has to be initialized in order to build test-gst.cpp
successfully.

(added in
0a657d6db5
)

Acked-by: Frediano Ziglio <freddy77@gmail.com>
2022-03-23 13:39:52 +00:00
Geoffrey McRae
cf061597b6 Report name/uuid and agent connected tokens support.
A well behaved client implementing the SPICE protocol should check to see
if the server supports the capabilities it needs. This implementation of
the spice-server supports `SPICE_MAIN_CAP_NAME_AND_UUID` and `
SPICE_MAIN_CAP_AGENT_CONNECTED_TOKENS` so it should report this to the
client.

Acked-by: Frediano Ziglio <freddy77@gmail.com>
2022-01-04 10:16:19 +00:00
Simon Chopin
3d32295f9e test-leaks: fix the test with OpenSSL3
In OpenSSL3, the SSL_accept call now emits proper errors, which we dump
*before* emitting the expected "SSL_accept failed" error message. The
g_test_expect_message framework doesn't really allow us to discard
messages AFAICT, so instead we add a new expectation with fairly loose
criteria.

Fixes #63

Signed-off-by: Simon Chopin <simon.chopin@canonical.com>
Acked-by: Frediano Ziglio <freddy77@gmail.com>
2021-11-11 09:23:51 +00:00
Frediano Ziglio
7169c710a9 syntax-check: Add missing contributor name to AUTHORS
Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
2021-05-18 08:30:11 +01:00
Frediano Ziglio
848c231d63 syntax-check: Add missing contributor name to AUTHORS
Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
2021-04-23 06:52:48 +01:00
Frediano Ziglio
f09b8e63bc syntax-check: Add missing contributor name to AUTHORS
Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
2021-04-19 16:50:08 +01:00
Frediano Ziglio
9787df2ddd syntax-check: Add missing contributor name to AUTHORS
Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
2021-04-17 13:19:17 +01:00
Stefan Weil
691bd67ff8 Avoid build error caused by conflicting types for INT32
Compiler error for cross builds using mingw-w64:

In file included from /usr/share/mingw-w64/include/winnt.h:150,
                 from /usr/share/mingw-w64/include/minwindef.h:163,
                 from /usr/share/mingw-w64/include/windef.h:9,
                 from /usr/share/mingw-w64/include/windows.h:69,
                 from /usr/share/mingw-w64/include/winsock2.h:23,
                 from ../../../server/spice-core.h:29,
                 from ../../../server/spice.h:24,
                 from ../../../server/spice-wrapped.h:35,
                 from ../../../server/red-common.h:35,
                 from ../../../server/jpeg-encoder.c:22:
/usr/share/mingw-w64/include/basetsd.h:31:22: error: conflicting types for ‘INT32’
   typedef signed int INT32,*PINT32;
                      ^~~~~
In file included from /usr/x86_64-w64-mingw32/sys-root/mingw/include/jpeglib.h:31,
                 from ../../../server/jpeg-encoder.c:20:
/usr/x86_64-w64-mingw32/sys-root/mingw/include/jmorecfg.h:179:14: note: previous declaration of ‘INT32’ was here
 typedef long INT32;
              ^~~~~

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Acked-by: Frediano Ziglio <freddy77@gmail.com>
2021-04-15 08:51:44 +01:00
Julien Ropé
7da855b6f3 Add my name to the AUTHORS file to fix CI
Signed-off-by: Julien Ropé <jrope@redhat.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2020-12-07 11:13:16 +00:00
Gilmar Santos Jr
15b1e2a3bb red-stream: WebDAV doesn't work when SASL is active
When SASL is active, if a read request is made and SASL buffer contains some
data (but not enough to fulfill the request), upon return the taken data from
the buffer is not accounted for and hence part of the message gets discarded.

red_stream_sasl_read function takes available data from sasl buffer and returns
if it's enough. If it's not, nbyte is decremented and buf pointer is
incremented to account for the taken data (if any). Then it tries to get more
data from the socket and decode it.

Suppose there was some data in the sasl buffer, but not enough. Then the socket
is not readable (EAGAIN, EINTR, whatever) or the new data isn't enough for
sasl_decode (hence decodedlen == 0). In both cases the function returns as if
no data was read, but it took some data from sasl buffer. This data is lost and
from this point on the communication ceases on the channel (eventually new data
is read, but messages are corrupt without the parts previously discarded).

On the other hand, if some data is read from sasl buffer and everything else
works fine, the output buffer contains all the data, but the count returned
only inform the caller about the newly read data (which causes the similar
effect of discarding part of the message).

Fixes: https://gitlab.freedesktop.org/spice/spice/-/issues/40

Acked-by: Frediano Ziglio <fziglio@redhat.com>
2020-05-11 19:09:15 +01:00
Frediano Ziglio
c986f9cd83 syntax-check: Add missing contributor name to AUTHORS
Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
2020-04-29 20:48:39 +01:00
Frediano Ziglio
734582ed99 syntax-check: Add missing contributor name to AUTHORS
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
2020-03-17 10:01:38 +00:00
Rosen Penev
5bc932f7a7 reds: Fix compilation without deprecated OpenSSL 1.1 APIs
Missing headers for BN_ and RSA_ functions.

Initialization is deprecated with 1.1.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2019-11-06 08:59:13 +00:00
Frediano Ziglio
0c6dc28334 syntax-check: Add missing contributor name to AUTHORS
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
2019-07-03 14:49:34 +01:00
Christian Ehrhardt
19f9f454e0 test: fix test-qxl-parsing on ppc64el and armhf
On ppc64el and armhf the handling of "1 << mem_info.memslot_id_shift"
will end up beign a zero which breaks the test.

Marking the implicit value 1 as a 64 bit value (to match the uint64_t
target) fixes the issue.

Fixes #31

Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2019-06-12 14:47:15 +01:00
Thiago Mendes
b052fb73b6 Converting Vd_interfaces.odt to Asciidoc
https://gitlab.freedesktop.org/spice/spice-server/issues/10

Acked-by: Frediano Ziglio <fziglio@redhat.com>
2019-05-31 15:01:37 +01:00
Frediano Ziglio
70f75c0f33 syntax-check: Add missing contributors names to AUTHORS
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
2019-05-31 05:58:58 +01:00
Benjamin Tissoires
ff9c8d4908 inputs-channel: Attempt to have a reliable led state
We can not consider the qemu led state to be reliable. It by default has
50ms of delay, so if we want to achieve something reliable, this won't do.

We need to keep our own internal state, and consider it as reliable.
We update it immediately after receiving the key presses, meaning that this
is now the future state of the guest.

When we receive a keymap event, we check against this 'ideal' state and
only update the guest if we 'counted' that it won't have the correct state.

When the guest notifies its change, the modifiers_watch is supposed to
fix any wrong state.

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2019-04-30 09:05:07 +01:00
谢 昆明
699151e198 Remove a duplicated line
Signed-off-by: kunming.xie <kunming.xie@hotmail.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2019-03-22 10:16:30 +00:00
Frediano Ziglio
4666ff241d syntax-check: Add missing contributors names to AUTHORS
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Christophe Fergeau <cfergeau@redhat.com>
2019-03-18 12:37:32 +00:00
Frediano Ziglio
4f08f50de9 syntax-check: Add missing contributors names to AUTHORS
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
2018-09-19 20:31:31 +01:00
Frediano Ziglio
8e302a7596 syntax-check: Add missing contributors names to AUTHORS
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Victor Toso <victortoso@redhat.com>
2018-04-06 08:30:01 +01:00
Victor Toso
b7d7c66acd syntax-check: Fix missing AUTHORS
Signed-off-by: Victor Toso <victortoso@redhat.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2017-03-06 14:26:13 +00:00
Christophe Fergeau
b7c7a6ca9d syntax-check: Add missing contributors names to AUTHORS
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2016-11-01 12:43:07 +00:00
Pavel Grunt
1a158ce728 syntax-check: Fix missing AUTHORS
Acked-by: Christophe Fergeau <cfergeau@redhat.com>
2016-01-08 11:23:44 +00:00
Christophe Fergeau
5860ab97e3 syntax-check: Add missing AUTHORS 2015-10-19 14:25:36 +02:00
Uri Lublin
c0c78346ff syntax-check: update AUTHORS 2013-07-16 23:37:28 +03:00
Daniel P. Berrange
8646341983 Add recent new committers to AUTHORS file / mailmap
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2012-04-25 09:49:29 +01:00
Daniel P. Berrange
c9b38f6ac7 Fill out the AUTHORS file with some content
The AUTHORS file is empty, fill it in with a list of present and
past maintainers, and email addresses of all people who have
contributed patches
2012-01-13 18:11:58 +02:00
Yaniv Kamay
c1b79eb035 fresh start 2009-10-14 15:06:41 +02:00