From 9640339f2e9dc126406f6b6f8a091b924898b4f5 Mon Sep 17 00:00:00 2001 From: deva Date: Sun, 25 Sep 2005 20:59:02 +0000 Subject: *** empty log message *** --- src/dvfile.cc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/dvfile.cc') diff --git a/src/dvfile.cc b/src/dvfile.cc index 7eab867..7d83255 100644 --- a/src/dvfile.cc +++ b/src/dvfile.cc @@ -28,8 +28,7 @@ #include "dvfile.h" #include "dv.h" - -#include +#include "util.h" dvfile::dvfile(Info* i) { @@ -45,12 +44,9 @@ dvfile::~dvfile() unsigned char *dvfile::readFrame() { - struct timespec ts; unsigned char *frame = new unsigned char[DVPACKAGE_SIZE]; - ts.tv_sec = 0; - ts.tv_nsec = 1000000000L / 25L; // 1/25s - nanosleep(&ts, NULL); + sleep_1_frame(); if(fp) { while(fread(frame, DVPACKAGE_SIZE, 1, fp) == 0) { -- cgit v1.2.3