diff options
author | phintuka <phintuka> | 2012-03-20 07:58:23 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2012-03-20 07:58:23 +0000 |
commit | 2f8e5b27e3fdf5fe09e2177a0c68d0c912997fbf (patch) | |
tree | ffa85ebe156a695ab5d9431aa929f02da8031c08 | |
parent | 99a05d138cd7bf440c5e69c66eb8f878ad91f7e1 (diff) | |
download | xineliboutput-2f8e5b27e3fdf5fe09e2177a0c68d0c912997fbf.tar.gz xineliboutput-2f8e5b27e3fdf5fe09e2177a0c68d0c912997fbf.tar.bz2 |
Removed write-only variable
-rw-r--r-- | xine/adjustable_scr.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/xine/adjustable_scr.c b/xine/adjustable_scr.c index 4301e348..1855cdc9 100644 --- a/xine/adjustable_scr.c +++ b/xine/adjustable_scr.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: adjustable_scr.c,v 1.2 2008-12-14 01:21:20 phintuka Exp $ + * $Id: adjustable_scr.c,v 1.3 2012-03-20 07:58:23 phintuka Exp $ * */ @@ -59,8 +59,6 @@ struct scr_impl_s { double speed_tuning; pthread_mutex_t lock; - - struct timeval last_time; }; /* Only call set_pivot when already mutex locked ! */ @@ -82,11 +80,6 @@ static void set_pivot (scr_impl_t *this) this->cur_time.tv_sec=tv.tv_sec; this->cur_time.tv_usec=tv.tv_usec; this->cur_pts=pts; - - this->last_time.tv_sec = tv.tv_sec; - this->last_time.tv_usec = tv.tv_usec; - - return ; } /* @@ -127,9 +120,6 @@ static void scr_adjust (scr_plugin_t *scr, int64_t vpts) this->cur_time.tv_usec=tv.tv_usec; this->cur_pts = vpts; - this->last_time.tv_sec = tv.tv_sec; - this->last_time.tv_usec = tv.tv_usec; - pthread_mutex_unlock (&this->lock); } @@ -142,9 +132,6 @@ static void scr_start (scr_plugin_t *scr, int64_t start_vpts) xine_monotonic_clock(&this->cur_time, NULL); this->cur_pts = start_vpts; - this->last_time.tv_sec = this->cur_time.tv_sec; - this->last_time.tv_usec = this->cur_time.tv_usec; - pthread_mutex_unlock (&this->lock); scr_set_fine_speed (&this->scr, XINE_FINE_SPEED_NORMAL); @@ -166,9 +153,6 @@ static int64_t scr_get_current (scr_plugin_t *scr) pts = this->cur_pts + pts_calc; - this->last_time.tv_sec = tv.tv_sec; - this->last_time.tv_usec = tv.tv_usec; - pthread_mutex_unlock (&this->lock); return pts; |