mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-27 07:29:32 +00:00
stream: remove dcc parameter from stream_agent_stop()
Author: Marc-André Lureau <marcandre.lureau@gmail.com> Acked-by: Frediano Ziglio <fziglio@redhat.com>
This commit is contained in:
parent
75ab0c6817
commit
d78b44ec26
@ -4267,7 +4267,7 @@ static void red_display_marshall_stream_end(RedChannelClient *rcc,
|
||||
|
||||
red_channel_client_init_send_data(rcc, SPICE_MSG_DISPLAY_STREAM_DESTROY, NULL);
|
||||
destroy.id = get_stream_id(DCC_TO_DC(dcc), agent->stream);
|
||||
stream_agent_stop(dcc, agent);
|
||||
stream_agent_stop(agent);
|
||||
spice_marshall_msg_display_stream_destroy(base_marshaller, &destroy);
|
||||
}
|
||||
|
||||
|
||||
@ -675,8 +675,10 @@ void dcc_create_stream(DisplayChannelClient *dcc, Stream *stream)
|
||||
#endif
|
||||
}
|
||||
|
||||
void stream_agent_stop(DisplayChannelClient *dcc, StreamAgent *agent)
|
||||
void stream_agent_stop(StreamAgent *agent)
|
||||
{
|
||||
DisplayChannelClient *dcc = agent->dcc;
|
||||
|
||||
dcc_update_streams_max_latency(dcc, agent);
|
||||
if (agent->mjpeg_encoder) {
|
||||
mjpeg_encoder_destroy(agent->mjpeg_encoder);
|
||||
|
||||
@ -152,8 +152,7 @@ void stream_maintenance (DisplayChan
|
||||
void stream_agent_unref (DisplayChannel *display,
|
||||
StreamAgent *agent);
|
||||
void stream_agent_stats_print (StreamAgent *agent);
|
||||
void stream_agent_stop (DisplayChannelClient *dcc,
|
||||
StreamAgent *agent);
|
||||
void stream_agent_stop (StreamAgent *agent);
|
||||
|
||||
void attach_stream(DisplayChannel *display, Drawable *drawable, Stream *stream);
|
||||
void detach_stream(DisplayChannel *display, Stream *stream, int detach_sized);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user