- if (g_ascii_strcasecmp (name, "Set-Cookie") == 0) {
- if (val) {
- gboolean bret = FALSE;
- GstStructure *s = NULL;
- GstSoupHTTPSrc * tmp = src;
- SoupURI *uri;
-
- uri = soup_uri_new (tmp->location);
-
- /* post current bandwith & uri to application */
- s = gst_structure_new ("cookies",
- "updated-cookie", G_TYPE_STRING, val,
- "updated-url", G_TYPE_STRING, tmp->location, NULL);
- bret = gst_element_post_message (GST_ELEMENT_CAST (src), gst_message_new_element (GST_OBJECT_CAST (src), s));
- soup_cookie_jar_set_cookie (tmp->cookie_jar, uri, val);
- soup_uri_free (uri);
-
- GST_INFO_OBJECT (src, "request url [%s], posted cookies [%s] msg and returned = %d", tmp->location, val, bret);
- }
- } else if (g_ascii_strcasecmp (name, "Dash-Oldest-Segment") == 0) {