diff options
author | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2002-03-21 12:58:20 +0000 |
---|---|---|
committer | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2002-03-21 12:58:20 +0000 |
commit | be7a8b70ff25d405dbaa8fc082fc9349f65bf26b (patch) | |
tree | a5dcc2b1eeb3eec9431ab15f61018a31276ced8f | |
parent | e39616122c008ee817970bec66beea4a57c38663 (diff) | |
download | xine-lib-be7a8b70ff25d405dbaa8fc082fc9349f65bf26b.tar.gz xine-lib-be7a8b70ff25d405dbaa8fc082fc9349f65bf26b.tar.bz2 |
fix a freeze on exit problem
CVS patchset: 1604
CVS date: 2002/03/21 12:58:20
-rw-r--r-- | src/xine-engine/video_out.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/xine-engine/video_out.c b/src/xine-engine/video_out.c index 4af47c3c3..6a278758b 100644 --- a/src/xine-engine/video_out.c +++ b/src/xine-engine/video_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: video_out.c,v 1.81 2002/03/20 23:12:58 guenter Exp $ + * $Id: video_out.c,v 1.82 2002/03/21 12:58:20 miguelfreitas Exp $ * * frame allocation / queuing / scheduling / output functions */ @@ -473,6 +473,8 @@ static vo_frame_t *get_next_frame (vos_t *this, int64_t cur_vpts) { img->display_locked = 1; do { + /* always restore duration so drift correction shouldn't cause any trouble */ + img->duration = this->img_backup->duration; this->metronom->got_video_frame(this->metronom, img); } while (img->vpts < (cur_vpts - img->duration/2) ); |