From be7a8b70ff25d405dbaa8fc082fc9349f65bf26b Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Thu, 21 Mar 2002 12:58:20 +0000 Subject: fix a freeze on exit problem CVS patchset: 1604 CVS date: 2002/03/21 12:58:20 --- src/xine-engine/video_out.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) ); -- cgit v1.2.3