Update spice-common submodule

This is for:
  * new message gl_scanout2_unix
  * changed API spice_marshaller_get_fd(s)

Signed-off-by: Qiang Yu <yuq825@gmail.com>
Acked-by: Frediano Ziglio <freddy77@gmail.com>
This commit is contained in:
Qiang Yu 2025-03-25 16:39:56 +08:00 committed by Frediano Ziglio
parent cf678836a9
commit 07153b3c8c
2 changed files with 8 additions and 8 deletions

View File

@ -524,18 +524,18 @@ inline void RedChannelClientPrivate::restore_main_sender()
void RedChannelClient::msg_sent()
{
#ifndef _WIN32
int fd;
int fd[4];
if (spice_marshaller_get_fd(priv->send_data.marshaller, &fd)) {
if (red_stream_send_msgfd(priv->stream, fd) < 0) {
if (spice_marshaller_get_fds(priv->send_data.marshaller, fd)) {
if (red_stream_send_msgfd(priv->stream, fd[0]) < 0) {
perror("sendfd");
disconnect();
if (fd != -1)
close(fd);
if (fd[0] != -1)
close(fd[0]);
return;
}
if (fd != -1)
close(fd);
if (fd[0] != -1)
close(fd[0]);
}
#endif

@ -1 +1 @@
Subproject commit 8c0319e31df967e41c74f4121cbdb3b785fe114e
Subproject commit 492c22f4447eec9d430a7c737bdd20cbe93263c4