summaryrefslogtreecommitdiff
path: root/src/decoder.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/decoder.cc')
-rw-r--r--src/decoder.cc15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/decoder.cc b/src/decoder.cc
index a76105f..34c0185 100644
--- a/src/decoder.cc
+++ b/src/decoder.cc
@@ -25,6 +25,9 @@
*/
/*
* $Log$
+ * Revision 1.26 2005/05/02 14:06:55 deva
+ * Added unfreeze to decoder (called from camera).
+ *
* Revision 1.25 2005/05/02 10:52:46 deva
*
* Fixed bug invoking infinite loop, when snapshot is requested.
@@ -173,6 +176,16 @@ void Decoder::freeze()
b_freeze = true;
}
+/*
+ * Remove frozen frame.
+ */
+void Decoder::unfreeze()
+{
+ pthread_mutex_lock(&shot_mutex);
+ delete shot;
+ shot = NULL;
+ pthread_mutex_unlock(&shot_mutex);
+}
/*
* Set shoot bit on current frame.
@@ -186,9 +199,7 @@ void Decoder::shoot(unsigned char *rgb)
// Wait for shot to be taken
while(1) {
pthread_mutex_lock(&shot_mutex);
- fprintf(stderr, ":"); fflush(stderr);
if(shot) {
- fprintf(stderr, "."); fflush(stderr);
getScreenshot(shot, rgb);
delete shot;
shot = NULL;