diff options
author | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2004-10-29 23:11:37 +0000 |
---|---|---|
committer | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2004-10-29 23:11:37 +0000 |
commit | 9320048966af54c31a0cc84f956460167c9bf882 (patch) | |
tree | d4f5be6027681950b65704d96f2f081f33a038e8 /src/audio_out/audio_file_out.c | |
parent | caf3f7a6dc518a95522dd18a9940387909d81d98 (diff) | |
download | xine-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/audio_out/audio_file_out.c')
-rw-r--r-- | src/audio_out/audio_file_out.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/audio_out/audio_file_out.c b/src/audio_out/audio_file_out.c index 20271216e..4812929cf 100644 --- a/src/audio_out/audio_file_out.c +++ b/src/audio_out/audio_file_out.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: audio_file_out.c,v 1.2 2004/04/23 12:41:30 hadess Exp $ + * $Id: audio_file_out.c,v 1.3 2004/10/29 23:11:37 miguelfreitas Exp $ */ #ifdef HAVE_CONFIG_H @@ -159,7 +159,7 @@ static int ao_file_open(ao_driver_t *this_gen, uint32_t bits, uint32_t rate, int this->fd = -1; return 0; } - gettimeofday(&this->endtime, NULL); + xine_monotonic_clock(&this->endtime, NULL); return this->sample_rate; } @@ -234,7 +234,7 @@ static int ao_file_delay (ao_driver_t *this_gen) /* Work out how long we need to sleep for, and how much time we've already taken */ - gettimeofday(&now, NULL); + xine_monotonic_clock(&now, NULL); if (now.tv_sec > this->endtime.tv_sec) { /* We slipped. Compensate */ |