From 2d8a2921ca9165c1175117570622255e88a3e588 Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Tue, 6 May 2003 20:50:11 +0000 Subject: Thibaut asked me to revert his latest patch also set some more reasonable defaults for frame skipping (12000 pts prebuffering, at least 2 frames in advance to not skip). CVS patchset: 4786 CVS date: 2003/05/06 20:50:11 --- src/xine-engine/video_out.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/xine-engine/video_out.c') diff --git a/src/xine-engine/video_out.c b/src/xine-engine/video_out.c index 7dea53123..356d39bce 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.157 2003/05/06 14:02:27 tchamp Exp $ + * $Id: video_out.c,v 1.158 2003/05/06 20:50:12 miguelfreitas Exp $ * * frame allocation / queuing / scheduling / output functions */ @@ -314,7 +314,7 @@ static int vo_frame_draw (vo_frame_t *img, xine_stream_t *stream) { stream->metronom->got_video_frame (stream->metronom, img); this->current_duration = img->duration; - if (!this->grab_only && !img->bad_frame) { + if (!this->grab_only) { pic_vpts = img->vpts; img->extra_info->vpts = img->vpts; @@ -333,7 +333,7 @@ static int vo_frame_draw (vo_frame_t *img, xine_stream_t *stream) { /* avoid division by zero */ if( img->duration <= 0 ) img->duration = 3000; - frames_to_skip = ((-1 * diff) / img->duration + 3) * 2; + frames_to_skip = ((-1 * diff) / img->duration + 2) * 2; if (frames_to_skip<0) frames_to_skip = 0; -- cgit v1.2.3