mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-02-16 12:55:13 +00:00
webrtc: janus: room id not optional in 'joined' message
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1480>
This commit is contained in:
parent
0829898d73
commit
550018c917
1 changed files with 3 additions and 5 deletions
|
@ -152,7 +152,7 @@ struct InnerError {
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize, Debug)]
|
#[derive(Serialize, Deserialize, Debug)]
|
||||||
struct RoomJoined {
|
struct RoomJoined {
|
||||||
room: Option<RoomId>,
|
room: RoomId,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize, Debug)]
|
#[derive(Serialize, Deserialize, Debug)]
|
||||||
|
@ -425,10 +425,8 @@ impl Signaller {
|
||||||
if let Some(PluginData::VideoRoom { data: plugindata }) = event.plugindata {
|
if let Some(PluginData::VideoRoom { data: plugindata }) = event.plugindata {
|
||||||
match plugindata {
|
match plugindata {
|
||||||
VideoRoomData::Joined(joined) => {
|
VideoRoomData::Joined(joined) => {
|
||||||
if let Some(room) = joined.room {
|
gst::trace!(CAT, imp: self, "Joined room {:?} successfully", joined.room);
|
||||||
gst::trace!(CAT, imp: self, "Joined room {room:?} successfully");
|
self.session_requested();
|
||||||
self.session_requested();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
VideoRoomData::Event(room_event) => {
|
VideoRoomData::Event(room_event) => {
|
||||||
if room_event.error_code.is_some() && room_event.error.is_some() {
|
if room_event.error_code.is_some() && room_event.error.is_some() {
|
||||||
|
|
Loading…
Reference in a new issue