[gnome-remote-desktop] session-rdp: Move on_pipewire_stream_closed() down a bit



commit 8350fcd4d0c986a3ab1fd52fe1f0b4a909c6c58f
Author: Pascal Nowack <Pascal Nowack gmx de>
Date:   Sun Dec 5 11:42:17 2021 +0100

    session-rdp: Move on_pipewire_stream_closed() down a bit
    
    The on_pipewire_stream_closed() function relates to the stream_ready()
    function and not to the remote_desktop_session_ready() function.
    
    Make this clear by moving this function accordingly.

 src/grd-session-rdp.c | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/src/grd-session-rdp.c b/src/grd-session-rdp.c
index 5726fbf3..bc0474b8 100644
--- a/src/grd-session-rdp.c
+++ b/src/grd-session-rdp.c
@@ -2096,15 +2096,6 @@ close_session_idle (gpointer user_data)
   return G_SOURCE_REMOVE;
 }
 
-static void
-on_pipewire_stream_closed (GrdRdpPipeWireStream *stream,
-                           GrdSessionRdp        *session_rdp)
-{
-  g_warning ("PipeWire stream closed, closing client");
-
-  maybe_queue_close_session_idle (session_rdp);
-}
-
 static void
 grd_session_rdp_remote_desktop_session_ready (GrdSession *session)
 {
@@ -2117,6 +2108,15 @@ grd_session_rdp_remote_desktop_session_ready (GrdSession *session)
                                                            session_rdp->stop_event);
 }
 
+static void
+on_pipewire_stream_closed (GrdRdpPipeWireStream *stream,
+                           GrdSessionRdp        *session_rdp)
+{
+  g_warning ("PipeWire stream closed, closing client");
+
+  maybe_queue_close_session_idle (session_rdp);
+}
+
 static void
 grd_session_rdp_stream_ready (GrdSession *session,
                               GrdStream  *stream)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]