summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel Freitas <miguelfreitas@users.sourceforge.net>2002-05-18 12:36:03 +0000
committerMiguel Freitas <miguelfreitas@users.sourceforge.net>2002-05-18 12:36:03 +0000
commit21a12166211d8ee5956a460273401e70e2817f2e (patch)
tree0444f8b3cad8167c94f24fd2e57a3a41869289a8
parent465a3a207de7be7bfff02d2c6aff8680d9e4354b (diff)
downloadxine-lib-21a12166211d8ee5956a460273401e70e2817f2e.tar.gz
xine-lib-21a12166211d8ee5956a460273401e70e2817f2e.tar.bz2
small fix to still frame logic. this improves recovering when decoder
is too late. the old code adjusted metronom's video_vpts, causing false "video jumps". CVS patchset: 1906 CVS date: 2002/05/18 12:36:03
-rw-r--r--src/xine-engine/video_out.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/xine-engine/video_out.c b/src/xine-engine/video_out.c
index 569177f4d..c190e46e1 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.96 2002/05/02 01:44:44 siggi Exp $
+ * $Id: video_out.c,v 1.97 2002/05/18 12:36:03 miguelfreitas Exp $
*
* frame allocation / queuing / scheduling / output functions
*/
@@ -409,13 +409,8 @@ static vo_frame_t *get_next_frame (vos_t *this, int64_t cur_vpts) {
/* keep playing still frames */
img = this->vo.duplicate_frame (&this->vo, this->img_backup );
-
- 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) );
-
+ img->vpts = cur_vpts;
+
return img;
} else {