summaryrefslogtreecommitdiff
path: root/src/xine-engine/input_rip.c
diff options
context:
space:
mode:
authorMiguel Freitas <miguelfreitas@users.sourceforge.net>2004-10-29 23:11:37 +0000
committerMiguel Freitas <miguelfreitas@users.sourceforge.net>2004-10-29 23:11:37 +0000
commit9320048966af54c31a0cc84f956460167c9bf882 (patch)
treed4f5be6027681950b65704d96f2f081f33a038e8 /src/xine-engine/input_rip.c
parentcaf3f7a6dc518a95522dd18a9940387909d81d98 (diff)
downloadxine-lib-9320048966af54c31a0cc84f956460167c9bf882.tar.gz
xine-lib-9320048966af54c31a0cc84f956460167c9bf882.tar.bz2
use monotonic clock when available
CVS patchset: 7087 CVS date: 2004/10/29 23:11:37
Diffstat (limited to 'src/xine-engine/input_rip.c')
-rw-r--r--src/xine-engine/input_rip.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xine-engine/input_rip.c b/src/xine-engine/input_rip.c
index 18088ea87..bd0cbfd7f 100644
--- a/src/xine-engine/input_rip.c
+++ b/src/xine-engine/input_rip.c
@@ -29,7 +29,7 @@
* - it's possible speeder saving streams in the xine without playing:
* xine stream_mrl#save:file.raw\;noaudio\;novideo
*
- * $Id: input_rip.c,v 1.25 2004/09/26 22:54:52 valtri Exp $
+ * $Id: input_rip.c,v 1.26 2004/10/29 23:11:38 miguelfreitas Exp $
*/
/* TODO:
@@ -398,7 +398,7 @@ static off_t rip_plugin_seek(input_plugin_t *this_gen, off_t offset, int origin)
}
/* read and catch remaining data after this->savepos */
- gettimeofday(&time1, NULL);
+ xine_monotonic_clock(&time1, NULL);
while (this->curpos < newpos && interval < SEEK_TIMEOUT) {
if( blocksize ) {
buf_element_t *buf;
@@ -418,7 +418,7 @@ static off_t rip_plugin_seek(input_plugin_t *this_gen, off_t offset, int origin)
break;
}
}
- gettimeofday(&time2, NULL);
+ xine_monotonic_clock(&time2, NULL);
interval = (double)(time2.tv_sec - time1.tv_sec)
+ (double)(time2.tv_usec - time1.tv_usec) / 1000000;
}