From 77436700459a15e53c1099b0c466db26cdee7ada Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Wed, 19 Nov 2014 08:45:12 +0100 Subject: [PATCH] iptv pipe: fix the backslash handling --- src/input/mpegts/iptv/iptv_pipe.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/input/mpegts/iptv/iptv_pipe.c b/src/input/mpegts/iptv/iptv_pipe.c index 2e37a6eb..c3abc55f 100644 --- a/src/input/mpegts/iptv/iptv_pipe.c +++ b/src/input/mpegts/iptv/iptv_pipe.c @@ -57,11 +57,8 @@ iptv_pipe_start ( iptv_mux_t *im, const char *_raw, const url_t *url ) while (*s && *s != ' ') { while (*s && *s != ' ' && *s != '\\') s++; - if (*s == '\\') { - s++; - if (*s) - s++; - } + if (*s == '\\') + memmove(s, s + 1, strlen(s)); } if (f != s) { if (*s) {