summaryrefslogtreecommitdiff
path: root/src/encoder.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/encoder.cc')
-rw-r--r--src/encoder.cc17
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;
}
}