summaryrefslogtreecommitdiff
path: root/src/decoder.cc
diff options
context:
space:
mode:
authordeva <deva>2005-06-02 15:03:23 +0000
committerdeva <deva>2005-06-02 15:03:23 +0000
commit907dbf7e8915fb459e4ab1482fd4dbd8c8ea50d4 (patch)
tree5c6278093dc03a4b2fe35dc6c8a76aef15eea106 /src/decoder.cc
parentdf793bb0657844c98c0505f47db80798b4ad495e (diff)
Fixed crash in network.cc if socket not connected.
Added option to skop ecery second frame in player
Diffstat (limited to 'src/decoder.cc')
-rw-r--r--src/decoder.cc11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/decoder.cc b/src/decoder.cc
index db95fe8..ec3f695 100644
--- a/src/decoder.cc
+++ b/src/decoder.cc
@@ -39,6 +39,11 @@
/*
* $Log$
+ * Revision 1.30 2005/06/02 15:03:23 deva
+ *
+ * Fixed crash in network.cc if socket not connected.
+ * Added option to skop ecery second frame in player
+ *
* Revision 1.29 2005/05/25 13:11:42 deva
*
* Made unfreeze close connection, when no recording is done.
@@ -80,6 +85,8 @@
#include <errno.h>
*/
+#include "miav_config.h"
+
#include <time.h>
// Use libdv
@@ -131,6 +138,8 @@ void Decoder::decode()
bool local_record = false;
bool old_record;
+ bool skip_frames = config->readInt("player_skip_frames");
+
dv1394 dv_stream = dv1394(info); // Use default port and channel.
while(*running) {
@@ -174,7 +183,7 @@ void Decoder::decode()
}
static int showframe = 1;
- // showframe = 1 - showframe;
+ if(skip_frames != 0) showframe = 1 - showframe;
if(showframe) {
Frame *pframe = new Frame(ptr, DVPACKAGE_SIZE);
pframe->shoot = local_shoot;