Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
webui: /play - direct streaming for no user-agent providers, remove V…
…LC for direct

(note vlc is fine with playlists and shows the correct title for matroska)
  • Loading branch information
perexg committed Oct 23, 2014
1 parent 5920665 commit ea0ea58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/webui/webui.c
Expand Up @@ -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)
Expand Down

0 comments on commit ea0ea58

Please sign in to comment.