From ea0ea5861f838cfd1a16ae1d955d4a4fe8b4cf60 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Wed, 22 Oct 2014 22:23:47 +0200 Subject: [PATCH] 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) --- src/webui/webui.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/webui/webui.c b/src/webui/webui.c index a012a0c2c..fe4685dde 100644 --- a/src/webui/webui.c +++ b/src/webui/webui.c @@ -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) -- 2.47.3