diff options
author | deva <deva> | 2005-05-22 16:34:44 +0000 |
---|---|---|
committer | deva <deva> | 2005-05-22 16:34:44 +0000 |
commit | 72a9a97564165e09ece706de579e8cfd558ba10a (patch) | |
tree | 1b190a8d61e2d756516f129b527841207a1059ef /src/encoder.cc | |
parent | b04122f3f7884de08eb5d59bb3fd2bff829f9039 (diff) |
Fix: Connection is now taken down when taking a sanpshot without recording.
Diffstat (limited to 'src/encoder.cc')
-rw-r--r-- | src/encoder.cc | 17 |
1 files changed, 17 insertions, 0 deletions
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; } } |