diff options
author | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2008-06-11 19:32:28 +0100 |
---|---|---|
committer | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2008-06-11 19:32:28 +0100 |
commit | 3b80ae534dbba2eb355d1ede99e92b5431a7e3aa (patch) | |
tree | df24f97f7153a415afd5af101f45eded25e08967 /src/input/input_http.c | |
parent | 8f1264ac2d3cb3e81f3ce64973b150fc82681286 (diff) | |
parent | acc0fe7a56ffdfa0ca359ba4a18fe7381933dbc5 (diff) | |
download | xine-lib-3b80ae534dbba2eb355d1ede99e92b5431a7e3aa.tar.gz xine-lib-3b80ae534dbba2eb355d1ede99e92b5431a7e3aa.tar.bz2 |
Merge from 1.1.
--HG--
rename : src/xine-engine/xine_internal.h => include/xine/xine_internal.h
Diffstat (limited to 'src/input/input_http.c')
-rw-r--r-- | src/input/input_http.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/input/input_http.c b/src/input/input_http.c index 2dc7a18dc..2ba92808f 100644 --- a/src/input/input_http.c +++ b/src/input/input_http.c @@ -927,7 +927,10 @@ static int http_plugin_open (input_plugin_t *this_gen ) { /* content type */ if (!strncasecmp(this->buf, TAG_CONTENT_TYPE, sizeof(TAG_CONTENT_TYPE) - 1)) { - if (!strncasecmp(this->buf + sizeof(TAG_CONTENT_TYPE) - 1, "video/nsv", 9)) { + const char *type = this->buf + sizeof (TAG_CONTENT_TYPE) - 1; + while (isspace (*type)) + ++type; + if (!strncasecmp (type, "video/nsv", 9)) { lprintf("shoutcast nsv detected\n"); this->is_nsv = 1; } |