mirror of
https://github.com/brl/mutter.git
synced 2024-12-26 04:42:14 +00:00
screencast: Do not stop remote desktop session when a stream closes
In remote desktop sessions, streams can be created and destroyed on-the-fly. If a stream is gone, it is not necessarily an error. So, don't treat that situation like an erroneous one. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2911>
This commit is contained in:
parent
01ecaf10ef
commit
712c9a1700
@ -350,7 +350,17 @@ static void
|
|||||||
on_stream_closed (MetaScreenCastStream *stream,
|
on_stream_closed (MetaScreenCastStream *stream,
|
||||||
MetaScreenCastSession *session)
|
MetaScreenCastSession *session)
|
||||||
{
|
{
|
||||||
|
session->streams = g_list_remove (session->streams, stream);
|
||||||
|
g_object_unref (stream);
|
||||||
|
|
||||||
|
switch (session->session_type)
|
||||||
|
{
|
||||||
|
case META_SCREEN_CAST_SESSION_TYPE_NORMAL:
|
||||||
meta_dbus_session_close (META_DBUS_SESSION (session));
|
meta_dbus_session_close (META_DBUS_SESSION (session));
|
||||||
|
break;
|
||||||
|
case META_SCREEN_CAST_SESSION_TYPE_REMOTE_DESKTOP:
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
|
Loading…
Reference in New Issue
Block a user