Commit 90ea97f7 authored by Ilkka Ollakka's avatar Ilkka Ollakka

httplive: support absolute URI-locations for key-retrieval

parent e1208737
...@@ -775,7 +775,13 @@ static int parse_Key(stream_t *s, hls_stream_t *hls, char *p_read) ...@@ -775,7 +775,13 @@ static int parse_Key(stream_t *s, hls_stream_t *hls, char *p_read)
if (end != NULL) if (end != NULL)
*end = 0; *end = 0;
} }
hls->psz_current_key_path = relative_URI(hls->url, uri); /* For absolute URI, just duplicate it
* don't limit to HTTP, maybe some sanity checking
* should be done more in here? */
if( strstr( uri , "://" ) )
hls->psz_current_key_path = strdup( uri );
else
hls->psz_current_key_path = relative_URI(hls->url, uri);
free(value); free(value);
value = iv = parse_Attributes(p_read, "IV"); value = iv = parse_Attributes(p_read, "IV");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment