Fix a memleak of the basic auth token.
Add docs for the helper function
GstRTSPAuth *auth = GST_RTSP_AUTH (obj);
GST_INFO ("finalize auth %p", auth);
+ g_free (auth->basic);
G_OBJECT_CLASS (gst_rtsp_auth_parent_class)->finalize (obj);
}
return result;
}
+/**
+ * gst_rtsp_auth_make_basic:
+ * @user: a userid
+ * @pass: a password
+ *
+ * Construct a Basic authorisation token from @user and @pass.
+ *
+ * Returns: the base64 encoding of the string @user:@pass. g_free()
+ * after usage.
+ */
gchar *
gst_rtsp_auth_make_basic (const gchar * user, const gchar * pass)
{