[Spice-commits] src/channel-display.c
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Jun 29 17:59:56 UTC 2018
src/channel-display.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit f5965493764642094c5fca3fb8c82872a32ae9ef
Author: Frediano Ziglio <fziglio at redhat.com>
Date: Thu Jun 28 16:37:22 2018 +0100
Replace spice_printerr() with g_warning()
The remaining occurrences of spice_printerr() are warnings when
something unexpected happens, they can be replaced with g_warning() so
that users of spice-server can redirect them with
g_log_set_default_handler().
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
Acked-by: Christophe Fergeau <cfergeau at redhat.com>
diff --git a/src/channel-display.c b/src/channel-display.c
index 8fb4dee..44ba043 100644
--- a/src/channel-display.c
+++ b/src/channel-display.c
@@ -1211,7 +1211,7 @@ static void report_invalid_stream(SpiceChannel *channel, uint32_t id)
/* Send a special stream report (UINT_MAX dropped frames out of zero)
* to indicate there is no such stream.
*/
- spice_printerr("notify the server that stream %u does not exist", id);
+ g_warning("notify the server that stream %u does not exist", id);
memset(&report, 0, sizeof(report));
report.stream_id = id;
report.num_frames = 0;
@@ -1269,7 +1269,7 @@ static display_stream *display_stream_create(SpiceChannel *channel,
break;
}
if (st->video_decoder == NULL) {
- spice_printerr("could not create a video decoder for codec %u", codec_type);
+ g_warning("could not create a video decoder for codec %u", codec_type);
g_clear_pointer(&st, display_stream_destroy);
}
return st;
@@ -1310,7 +1310,7 @@ static void display_handle_stream_create(SpiceChannel *channel, SpiceMsgIn *in)
op->flags, op->codec_type,
&op->dest, &op->clip);
if (c->streams[op->id] == NULL) {
- spice_printerr("could not create the %u video stream", op->id);
+ g_warning("could not create the %u video stream", op->id);
destroy_stream(channel, op->id);
report_invalid_stream(channel, op->id);
}
More information about the Spice-commits
mailing list