From 72a9a97564165e09ece706de579e8cfd558ba10a Mon Sep 17 00:00:00 2001 From: deva Date: Sun, 22 May 2005 16:34:44 +0000 Subject: Fix: Connection is now taken down when taking a sanpshot without recording. --- src/encoder.cc | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/encoder.cc') diff --git a/src/encoder.cc b/src/encoder.cc index 6568578..f0b3324 100644 --- a/src/encoder.cc +++ b/src/encoder.cc @@ -39,6 +39,10 @@ /* * $Log$ + * Revision 1.27 2005/05/22 16:34:44 deva + * + * Fix: Connection is now taken down when taking a sanpshot without recording. + * * Revision 1.26 2005/05/03 08:31:59 deva * Removed the error object, and replaced it with a more generic info object. * @@ -167,6 +171,19 @@ void Encoder::encode() } } } + + if(frame->shoot && !frozen && !frame->record) { + // FIXME: This is ugly! + // Bugfix... connection not cleared, when an 'unfrozen' snapshot is taken, + // and no recording is done. + if(s) { + if(n) delete n; + delete s; + s = NULL; + n = NULL; + } + } + if(frame) delete frame; } } -- cgit v1.2.3