]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
webui: /play - direct streaming for no user-agent providers, remove VLC for direct
authorJaroslav Kysela <perex@perex.cz>
Wed, 22 Oct 2014 20:23:47 +0000 (22:23 +0200)
committerJaroslav Kysela <perex@perex.cz>
Thu, 23 Oct 2014 06:27:21 +0000 (08:27 +0200)
(note vlc is fine with playlists and shows the correct title for matroska)

src/webui/webui.c

index a012a0c2c59ba5b1e082e35c9caa430d7efa98f7..fe4685ddea3bca4f5f22b67f47ab6a36dfd8ccf0 100644 (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)