[Bug 792547] New: RTSPAuth add basic throws gst_rtsp_auth_add_basic: assertion 'GST_IS_RTSP_TOKEN (token)' failed

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Mon Jan 15 22:09:48 UTC 2018


https://bugzilla.gnome.org/show_bug.cgi?id=792547

            Bug ID: 792547
           Summary: RTSPAuth add basic throws gst_rtsp_auth_add_basic:
                    assertion 'GST_IS_RTSP_TOKEN (token)' failed
    Classification: Platform
           Product: GStreamer
           Version: unspecified
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gst-rtsp-server
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: cp.unid at gmail.com
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

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.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list