webui: /play - direct streaming for no user-agent providers, remove VLC for direct

(note vlc is fine with playlists and shows the correct title for matroska)
This commit is contained in:
Jaroslav Kysela 2014-10-22 22:23:47 +02:00
parent 59206653fb
commit ea0ea5861f

View file

@ -1029,8 +1029,8 @@ page_play_path_modify(http_connection_t *hc, const char *path, int *cut)
const char *agent = http_arg_get(&hc->hc_args, "User-Agent");
int direct = 0;
if (strncasecmp(agent, "VLC/", 4) == 0)
direct = 1;
if (agent == NULL)
direct = 1; /* direct streaming for no user-agent providers */
else if (strncasecmp(agent, "MPlayer ", 8) == 0)
direct = 1;
else if (strncasecmp(agent, "curl/", 5) == 0)