stream: use display_channel_get_stream_id()

As we have a function for that, don't do the math elsewhere.

Signed-off-by: Victor Toso <victortoso@redhat.com>
Acked-by: Christophe Fergeau <cfergeau@redhat.com>
This commit is contained in:
Victor Toso 2017-06-29 17:20:22 +02:00
parent 7254169f7f
commit 970cb2a1d3

View File

@ -422,7 +422,7 @@ static void display_channel_create_stream(DisplayChannel *display, Drawable *dra
dcc_create_stream(dcc, stream);
}
spice_debug("stream %d %dx%d (%d, %d) (%d, %d) %u fps",
(int)(stream - display->priv->streams_buf), stream->width,
display_channel_get_stream_id(display, stream), stream->width,
stream->height, stream->dest_area.left, stream->dest_area.top,
stream->dest_area.right, stream->dest_area.bottom,
stream->input_fps);