webrtc: janus: use 'member' when defining janus-state property

It actually works when passing the type as well.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/2244>
This commit is contained in:
Guillaume Desmottes 2025-05-08 08:40:59 +02:00 committed by GStreamer Marge Bot
parent 8cf0784730
commit 2fb92cf188

View file

@ -6001,8 +6001,8 @@ pub(super) mod janus {
*/
#[property(
name = "janus-state",
// FIXME: can't use `member =` with enums: https://github.com/gtk-rs/gtk-rs-core/issues/1338
get = |self_: &Self| self_.state.lock().unwrap().janus_state,
get,
member = janus_state,
type = JanusVRSignallerState,
blurb = "The current state of the signaller",
builder(JanusVRSignallerState::Initialized)