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