After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 792547 - RTSPAuth add basic throws gst_rtsp_auth_add_basic: assertion 'GST_IS_RTSP_TOKEN (token)' failed
RTSPAuth add basic throws gst_rtsp_auth_add_basic: assertion 'GST_IS_RTSP_TOK...
Status: RESOLVED DUPLICATE of bug 787073
Product: GStreamer
Classification: Platform
Component: gst-rtsp-server
unspecified
Other Windows
: Normal normal
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2018-01-15 22:09 UTC by cp.unid
Modified: 2018-01-17 19:48 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description cp.unid 2018-01-15 22:09:48 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.
Comment 1 Tim-Philipp Müller 2018-01-17 19:48:06 UTC

*** This bug has been marked as a duplicate of bug 787073 ***