[Bug 601733] [rtspsrc] Add message/signal when authentication is required
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Sun Apr 3 16:47:50 PDT 2011
https://bugzilla.gnome.org/show_bug.cgi?id=601733
GStreamer | gst-plugins-good | git
--- Comment #1 from Bastien Nocera <hadess at hadess.net> 2011-04-03 23:47:47 UTC ---
FWIW, that's what we have right now:
/* RTSP or HTTP source with user-id property ? */
if ((g_strcmp0 ("GstRTSPSrc", G_OBJECT_TYPE_NAME (err_msg->src)) == 0 ||
g_strcmp0 ("GstSoupHTTPSrc", G_OBJECT_TYPE_NAME (err_msg->src)) == 0) &&
g_object_class_find_property (G_OBJECT_GET_CLASS (err_msg->src),
"user-id") != NULL) {
GError *err = NULL;
gchar *dbg = NULL;
gst_message_parse_error (err_msg, &err, &dbg);
/* Urgh! Check whether this is an auth error */
if (err != NULL && dbg != NULL &&
is_error (err, RESOURCE, READ) &&
strstr (dbg, "401") != NULL) {
and strstr'ing for "401" really doesn't look like the best of ideas.
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- 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