[Spice-devel] [spice-gtk v1 2/3] Improve debug log for preferred video codec message

Victor Toso victortoso at redhat.com
Wed Dec 20 13:18:02 UTC 2017


From: Victor Toso <me at victortoso.com>

The gst_opts[] array was moved to the -priv.h header
inc96af50e2dd16b02b189e8 - Let's use it to improve debug messages.

Signed-off-by: Victor Toso <victortoso at redhat.com>
---
 src/channel-display.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/channel-display.c b/src/channel-display.c
index dece3b9..dc550f9 100644
--- a/src/channel-display.c
+++ b/src/channel-display.c
@@ -657,7 +657,7 @@ void spice_display_channel_change_preferred_video_codec_type(SpiceChannel *chann
      * decoding, store this information (as GArray) and send it to the server.
      * This array can be rearranged to have @codec_type in the front (which is
      * the preferred for the client side) */
-    CHANNEL_DEBUG(channel, "changing preferred video codec type to %d", codec_type);
+    CHANNEL_DEBUG(channel, "changing preferred video codec type to %s", gst_opts[codec_type].name);
     codecs = g_array_new(FALSE, FALSE, sizeof(gint));
     g_array_append_val(codecs, codec_type);
     spice_display_send_client_preferred_video_codecs(channel, codecs);
-- 
2.15.1



More information about the Spice-devel mailing list