diff options
author | deva <deva> | 2005-09-25 20:59:02 +0000 |
---|---|---|
committer | deva <deva> | 2005-09-25 20:59:02 +0000 |
commit | 9640339f2e9dc126406f6b6f8a091b924898b4f5 (patch) | |
tree | dad14d120f0fc4401552714b5efffe20b5c78a4d /src/dvfile.cc | |
parent | 36326a9c1bab28c5eccea6cc2c56c9a8b83dac0d (diff) |
*** empty log message ***
Diffstat (limited to 'src/dvfile.cc')
-rw-r--r-- | src/dvfile.cc | 8 |
1 files changed, 2 insertions, 6 deletions
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 <time.h> +#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) { |