From 907dbf7e8915fb459e4ab1482fd4dbd8c8ea50d4 Mon Sep 17 00:00:00 2001 From: deva Date: Thu, 2 Jun 2005 15:03:23 +0000 Subject: Fixed crash in network.cc if socket not connected. Added option to skop ecery second frame in player --- src/decoder.cc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/decoder.cc') 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 */ +#include "miav_config.h" + #include // 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; -- cgit v1.2.3