From aaefee31b3a529069218aea70cd849f1b7208d0b Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Wed, 17 Apr 2002 22:02:13 +0000 Subject: fix prebuffer vpts for no-audio streams CVS patchset: 1734 CVS date: 2002/04/17 22:02:13 --- src/xine-engine/metronom.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/xine-engine/metronom.c b/src/xine-engine/metronom.c index 62abe76b3..eaf93bf33 100644 --- a/src/xine-engine/metronom.c +++ b/src/xine-engine/metronom.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: metronom.c,v 1.80 2002/04/09 03:38:01 miguelfreitas Exp $ + * $Id: metronom.c,v 1.81 2002/04/17 22:02:13 miguelfreitas Exp $ */ #ifdef HAVE_CONFIG_H @@ -297,16 +297,16 @@ static void metronom_handle_video_discontinuity (metronom_t *this, int type, pthread_cond_wait (&this->audio_discontinuity_reached, &this->lock); } - if ( this->video_vpts < metronom_get_current_time(this) ) { - this->video_vpts = PREBUFFER_PTS_OFFSET + metronom_get_current_time(this); - printf ("metronom: video vpts adjusted with prebuffer to %lld\n", this->video_vpts); - } - if (this->video_vpts < this->audio_vpts) { this->video_vpts = this->audio_vpts; printf ("metronom: video vpts adjusted to %lld\n", this->video_vpts); } } + + if ( this->video_vpts < metronom_get_current_time(this) ) { + this->video_vpts = PREBUFFER_PTS_OFFSET + metronom_get_current_time(this); + printf ("metronom: video vpts adjusted with prebuffer to %lld\n", this->video_vpts); + } if (this->in_discontinuity) this->vpts_offset = this->next_vpts_offset; -- cgit v1.2.3