summaryrefslogtreecommitdiff
path: root/src/dvfile.cc
diff options
context:
space:
mode:
authordeva <deva>2005-09-25 20:59:02 +0000
committerdeva <deva>2005-09-25 20:59:02 +0000
commit9640339f2e9dc126406f6b6f8a091b924898b4f5 (patch)
treedad14d120f0fc4401552714b5efffe20b5c78a4d /src/dvfile.cc
parent36326a9c1bab28c5eccea6cc2c56c9a8b83dac0d (diff)
*** empty log message ***
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) {