diff options
-rw-r--r-- | src/encoder.cc | 2 | ||||
-rw-r--r-- | src/server.cc | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/encoder.cc b/src/encoder.cc index 4898888..9563d89 100644 --- a/src/encoder.cc +++ b/src/encoder.cc @@ -213,6 +213,8 @@ void Encoder::thread_main() void Encoder::start() { + savestate = NO_CHANGE; + savestate_sent = false; /* if(!s) { s = new Socket(port, errobj); diff --git a/src/server.cc b/src/server.cc index f4b6806..cd12db8 100644 --- a/src/server.cc +++ b/src/server.cc @@ -125,7 +125,6 @@ void newConnection(Socket *socket, Info *info) // No encoder exists, if this is a pure snapshot (image) connection. if(enc) { enc->setSaveState(savestate); - // Send end of stream frame. frame->endOfFrameStream = true; enc->encode(frame); |