summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authordeva <deva>2006-08-12 15:08:42 +0000
committerdeva <deva>2006-08-12 15:08:42 +0000
commit11d72fca7cbfaa052a59150a492d1342a2a436b9 (patch)
treeea4a36912d51b616395182b463109e3ec68ae7a0 /server
parent0ce19de1ad58dc4a7b25e86125cd2cc78156c001 (diff)
*** empty log message ***
Diffstat (limited to 'server')
-rw-r--r--server/libfame_wrapper.cc2
-rw-r--r--server/server.cc19
2 files changed, 17 insertions, 4 deletions
diff --git a/server/libfame_wrapper.cc b/server/libfame_wrapper.cc
index c5df05c..1b0694a 100644
--- a/server/libfame_wrapper.cc
+++ b/server/libfame_wrapper.cc
@@ -228,7 +228,7 @@ Frame *LibFAMEWrapper::encode(Frame *dvframe)
Frame *output = new Frame(NULL, FAME_BUFFER_SIZE);
// Init frame params
- dv_get_timestamp(dvdecoder, output->timecode); // Set timecode
+ dv_get_timestamp(dvdecoder, output->timestamp); // Set timecode
output->size = 0; // Init size (incremented as we read)
unsigned char* pt = output->data; // Set pointer to start of data buffer
diff --git a/server/server.cc b/server/server.cc
index 27e5eef..0688a3e 100644
--- a/server/server.cc
+++ b/server/server.cc
@@ -3,7 +3,7 @@
* server.cc
*
* Mon Nov 8 11:35:01 CET 2004
- * Copyright 2004 Bent Bisballe
+ * Copyright 2004 Bent Bisballe Nyeng
* deva@aasimon.org
****************************************************************************/
@@ -26,6 +26,10 @@
*/
#include "server.h"
+//#ifdef USE_DEBUG
+//#include "efencepp.h"
+//#endif /*USE_DEBUG*/
+
#include "network.h"
#include <stdio.h>
@@ -55,6 +59,7 @@
#include "server_status.h"
#include "dv.h"
+#include "util.h"
void newConnection(Socket *socket)
{
@@ -65,8 +70,16 @@ void newConnection(Socket *socket)
Frame *frame;
while((frame = network.recvFrame())) {
-
- sleep(1);
+
+ MIaV::info->info("TC: %d %d %d %d - shoot %d freeze %d",
+ frame->timecode.hour,
+ frame->timecode.min,
+ frame->timecode.sec,
+ frame->timecode.frame,
+ frame->snapshot,
+ frame->freeze);
+
+ // sleep_1_frame();
if(frame->vframe) delete frame->vframe;
if(frame->aframe) delete frame->aframe;