[Spice-commits] server/spicevmc.c

Uri Lublin uril at kemper.freedesktop.org
Sun Jul 24 12:43:10 UTC 2016


 server/spicevmc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 4d2a129054d21f322b9abd5d82717685d5df926c
Author: Uri Lublin <uril at redhat.com>
Date:   Thu Jul 14 18:32:09 2016 +0300

    spicevmc_device_connect: get parser for appropriate channel_type
    
    spicevmc_device_connect() is called for non-usb types too.

diff --git a/server/spicevmc.c b/server/spicevmc.c
index 0eda776..953d193 100644
--- a/server/spicevmc.c
+++ b/server/spicevmc.c
@@ -617,7 +617,7 @@ RedCharDevice *spicevmc_device_connect(RedsState *reds,
     state = (SpiceVmcState*)red_channel_create_parser(sizeof(SpiceVmcState), reds,
                                    reds_get_core_interface(reds), channel_type, id[channel_type]++,
                                    FALSE /* handle_acks */,
-                                   spice_get_client_channel_parser(SPICE_CHANNEL_USBREDIR, NULL),
+                                   spice_get_client_channel_parser(channel_type, NULL),
                                    spicevmc_red_channel_client_handle_message_parsed,
                                    &channel_cbs,
                                    SPICE_MIGRATE_NEED_FLUSH | SPICE_MIGRATE_NEED_DATA_TRANSFER);


More information about the Spice-commits mailing list