summaryrefslogtreecommitdiff
path: root/src/dvfile.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/dvfile.cc')
-rw-r--r--src/dvfile.cc8
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) {