[gnome-network-displays/cc-tmp: 61/80] cc: move state change to cc-ctrl
- From: Benjamin Berg <bberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-network-displays/cc-tmp: 61/80] cc: move state change to cc-ctrl
- Date: Fri, 9 Sep 2022 12:03:51 +0000 (UTC)
commit c21259f8b4ed2f7e0822e06b28c8fe56d23440ff
Author: Anupam Kumar <kyteinsky gmail com>
Date: Tue Sep 6 00:20:11 2022 +0530
cc: move state change to cc-ctrl
src/cc/cc-ctrl.c | 2 ++
src/nd-cc-sink.c | 1 -
2 files changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/cc/cc-ctrl.c b/src/cc/cc-ctrl.c
index 34fbb6c..c439b54 100644
--- a/src/cc/cc-ctrl.c
+++ b/src/cc/cc-ctrl.c
@@ -710,6 +710,8 @@ cc_ctrl_finish (CcCtrl *ctrl)
/* close the socket connection */
cc_comm_close_connection (&ctrl->comm);
+
+ ctrl->state = CC_CTRL_STATE_DISCONNECTED;
}
/* TODO: make the code less coupled with the mirroring app */
diff --git a/src/nd-cc-sink.c b/src/nd-cc-sink.c
index bd4f4b8..5fe6369 100644
--- a/src/nd-cc-sink.c
+++ b/src/nd-cc-sink.c
@@ -415,7 +415,6 @@ static void
nd_cc_sink_sink_stop_stream_int (NdCCSink *self)
{
cc_ctrl_finish (&self->ctrl);
- self->ctrl.state = CC_CTRL_STATE_DISCONNECTED;
self->cancellable = g_cancellable_new ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]