From 5624a9eb77530a54aef73d07b3b681ef0bdda616 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antti=20Sepp=C3=A4l=C3=A4?= Date: Wed, 12 Sep 2007 18:05:58 +0000 Subject: [PATCH] Fix channel switching --- streamer.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/streamer.c b/streamer.c index fd7454a..14f0e16 100644 --- a/streamer.c +++ b/streamer.c @@ -3,7 +3,7 @@ * * See the README file for copyright information and how to reach the author. * - * $Id: streamer.c,v 1.1 2007/09/12 17:28:59 rahrenbe Exp $ + * $Id: streamer.c,v 1.2 2007/09/12 18:05:58 ajhseppa Exp $ */ #include @@ -175,6 +175,10 @@ bool cIptvStreamer::SetStream(const char* address, const int port, const int pro socketActive = true; } + // De-activate the reception if it is running currently. Otherwise the + // reception stream is overwritten and cannot be un-set after this + Deactivate(); + // Check if the address fits into the buffer if (strlen(address) > sizeof(stream)) { error("ERROR: Address too big\n");