diff options
author | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2002-04-17 22:02:13 +0000 |
---|---|---|
committer | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2002-04-17 22:02:13 +0000 |
commit | aaefee31b3a529069218aea70cd849f1b7208d0b (patch) | |
tree | de2394759d998c13fc5ff97df03906c2c276f8f7 | |
parent | f5a2b33c180cf2662a9e02746ec6fe22fcd3c61c (diff) | |
download | xine-lib-aaefee31b3a529069218aea70cd849f1b7208d0b.tar.gz xine-lib-aaefee31b3a529069218aea70cd849f1b7208d0b.tar.bz2 |
fix prebuffer vpts for no-audio streams
CVS patchset: 1734
CVS date: 2002/04/17 22:02:13
-rw-r--r-- | src/xine-engine/metronom.c | 12 |
1 files changed, 6 insertions, 6 deletions
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; |