From b614fa0ec3900c3b46e4cb7b19ee6fe2225e92e6 Mon Sep 17 00:00:00 2001 From: Frank Schmirler Date: Fri, 2 Nov 2012 09:02:22 +0100 Subject: [PATCH] Start writer right after creating it --- HISTORY | 1 + server/streamer.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/HISTORY b/HISTORY index ce3b65b..99f2b04 100644 --- a/HISTORY +++ b/HISTORY @@ -1,6 +1,7 @@ VDR Plugin 'streamdev' Revision History --------------------------------------- +- Start writer right after creating it - Corrected typos (thanks to Ville Skyttä) - Fixed compiler error in client/device.c with VDR < 1.7.22 (reported by Uwe@vdrportal) diff --git a/server/streamer.c b/server/streamer.c index 10c267f..e9f3830 100644 --- a/server/streamer.c +++ b/server/streamer.c @@ -128,6 +128,7 @@ void cStreamdevStreamer::Start(cTBSocket *Socket) { Dprintf("start streamer\n"); m_Writer = new cStreamdevWriter(Socket, this); + m_Writer->Start(); Attach(); } @@ -135,7 +136,6 @@ void cStreamdevStreamer::Activate(bool On) { if (On && !Active()) { Dprintf("activate streamer\n"); - m_Writer->Start(); cThread::Start(); } }