GNOME Bugzilla – Bug 792547
RTSPAuth add basic throws gst_rtsp_auth_add_basic: assertion 'GST_IS_RTSP_TOKEN (token)' failed
Last modified: 2018-01-17 19:48:06 UTC
I'm using the Python bindings for the RTSP server. Here's a snippet: auth = GstRtspServer.RTSPAuth() token = GstRtspServer.RTSPToken() basic = auth.make_basic('user', 'password') # auth.set_default_token(token) auth.add_basic(basic, GstRtspServer.RTSPToken()) self.set_auth(auth) When I call set_auth, I get a gst_rtsp_auth_add_basic: assertion 'GST_IS_RTSP_TOKEN (token)' failed error. I've noticed in the C examples that the token has some properties set like RTSP_TOKEN_MEDIA_FACTORY_ROLE but there's a deprecation warning when trying to set values during initialization. Also the mini_object in token is show as void.
*** This bug has been marked as a duplicate of bug 787073 ***