From 550018c917309f67d421614e9e3638fb1aa748d2 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Wed, 28 Feb 2024 14:15:41 +0100 Subject: [PATCH] webrtc: janus: room id not optional in 'joined' message Part-of: --- net/webrtc/src/janusvr_signaller/imp.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/net/webrtc/src/janusvr_signaller/imp.rs b/net/webrtc/src/janusvr_signaller/imp.rs index 80a47f1d..b46563d2 100644 --- a/net/webrtc/src/janusvr_signaller/imp.rs +++ b/net/webrtc/src/janusvr_signaller/imp.rs @@ -152,7 +152,7 @@ struct InnerError { #[derive(Serialize, Deserialize, Debug)] struct RoomJoined { - room: Option, + room: RoomId, } #[derive(Serialize, Deserialize, Debug)] @@ -425,10 +425,8 @@ impl Signaller { if let Some(PluginData::VideoRoom { data: plugindata }) = event.plugindata { match plugindata { VideoRoomData::Joined(joined) => { - if let Some(room) = joined.room { - gst::trace!(CAT, imp: self, "Joined room {room:?} successfully"); - self.session_requested(); - } + gst::trace!(CAT, imp: self, "Joined room {:?} successfully", joined.room); + self.session_requested(); } VideoRoomData::Event(room_event) => { if room_event.error_code.is_some() && room_event.error.is_some() {