mirror of
https://github.com/brl/mutter.git
synced 2024-12-27 05:12:15 +00:00
screen-cast/session: Use add_stream() helper everywhere
It was introduced, but using it everywhere appropriate was forgotten. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3241>
This commit is contained in:
parent
242737c4dc
commit
264d29b435
@ -619,9 +619,7 @@ handle_record_window (MetaDBusScreenCastSession *skeleton,
|
|||||||
stream = META_SCREEN_CAST_STREAM (window_stream);
|
stream = META_SCREEN_CAST_STREAM (window_stream);
|
||||||
stream_path = meta_screen_cast_stream_get_object_path (stream);
|
stream_path = meta_screen_cast_stream_get_object_path (stream);
|
||||||
|
|
||||||
session->streams = g_list_append (session->streams, stream);
|
add_stream (session, stream);
|
||||||
|
|
||||||
g_signal_connect (stream, "closed", G_CALLBACK (on_stream_closed), session);
|
|
||||||
|
|
||||||
meta_dbus_screen_cast_session_complete_record_window (skeleton,
|
meta_dbus_screen_cast_session_complete_record_window (skeleton,
|
||||||
invocation,
|
invocation,
|
||||||
@ -713,9 +711,7 @@ handle_record_area (MetaDBusScreenCastSession *skeleton,
|
|||||||
stream = META_SCREEN_CAST_STREAM (area_stream);
|
stream = META_SCREEN_CAST_STREAM (area_stream);
|
||||||
stream_path = meta_screen_cast_stream_get_object_path (stream);
|
stream_path = meta_screen_cast_stream_get_object_path (stream);
|
||||||
|
|
||||||
session->streams = g_list_append (session->streams, stream);
|
add_stream (session, stream);
|
||||||
|
|
||||||
g_signal_connect (stream, "closed", G_CALLBACK (on_stream_closed), session);
|
|
||||||
|
|
||||||
meta_dbus_screen_cast_session_complete_record_area (skeleton,
|
meta_dbus_screen_cast_session_complete_record_area (skeleton,
|
||||||
invocation,
|
invocation,
|
||||||
@ -790,9 +786,7 @@ handle_record_virtual (MetaDBusScreenCastSession *skeleton,
|
|||||||
stream = META_SCREEN_CAST_STREAM (virtual_stream);
|
stream = META_SCREEN_CAST_STREAM (virtual_stream);
|
||||||
stream_path = meta_screen_cast_stream_get_object_path (stream);
|
stream_path = meta_screen_cast_stream_get_object_path (stream);
|
||||||
|
|
||||||
session->streams = g_list_append (session->streams, stream);
|
add_stream (session, stream);
|
||||||
|
|
||||||
g_signal_connect (stream, "closed", G_CALLBACK (on_stream_closed), session);
|
|
||||||
|
|
||||||
meta_dbus_screen_cast_session_complete_record_virtual (skeleton,
|
meta_dbus_screen_cast_session_complete_record_virtual (skeleton,
|
||||||
invocation,
|
invocation,
|
||||||
|
Loading…
Reference in New Issue
Block a user