mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-01-03 07:48:48 +00:00
webrtc: janus: numerical room ids are u64
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1478>
This commit is contained in:
parent
563eff1193
commit
ec17c58dee
1 changed files with 2 additions and 2 deletions
|
@ -46,7 +46,7 @@ fn feed_id() -> u32 {
|
||||||
#[serde(untagged)]
|
#[serde(untagged)]
|
||||||
enum RoomId {
|
enum RoomId {
|
||||||
Str(String),
|
Str(String),
|
||||||
Num(u32),
|
Num(u64),
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize, Debug, PartialEq, Eq)]
|
#[derive(Serialize, Deserialize, Debug, PartialEq, Eq)]
|
||||||
|
@ -551,7 +551,7 @@ impl Signaller {
|
||||||
state.feed_id = Some(RoomId::Str(settings.feed_id.clone()));
|
state.feed_id = Some(RoomId::Str(settings.feed_id.clone()));
|
||||||
} else {
|
} else {
|
||||||
let room_id_str = settings.room_id.as_ref().unwrap();
|
let room_id_str = settings.room_id.as_ref().unwrap();
|
||||||
match room_id_str.parse::<u32>() {
|
match room_id_str.parse() {
|
||||||
Ok(n) => {
|
Ok(n) => {
|
||||||
state.room_id = Some(RoomId::Num(n));
|
state.room_id = Some(RoomId::Num(n));
|
||||||
state.feed_id = Some(RoomId::Num(settings.feed_id.parse().unwrap()));
|
state.feed_id = Some(RoomId::Num(settings.feed_id.parse().unwrap()));
|
||||||
|
|
Loading…
Reference in a new issue