From 5a58fb494ddef8baa61e77a1eaf60fa496f40c85 Mon Sep 17 00:00:00 2001 From: Michael Roitzsch Date: Sat, 22 Feb 2003 14:18:16 +0000 Subject: update extra info (for slider movement) in stills with audio CVS patchset: 4248 CVS date: 2003/02/22 14:18:16 --- src/xine-engine/audio_out.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/xine-engine/audio_out.c b/src/xine-engine/audio_out.c index 27795ad61..ed25f69c7 100644 --- a/src/xine-engine/audio_out.c +++ b/src/xine-engine/audio_out.c @@ -17,7 +17,7 @@ * along with self program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: audio_out.c,v 1.107 2003/02/21 02:05:12 guenter Exp $ + * $Id: audio_out.c,v 1.108 2003/02/22 14:18:16 mroi Exp $ * * 22-8-2001 James imported some useful AC3 sections from the previous alsa driver. * (c) 2001 Andy Lo A Foe @@ -776,7 +776,10 @@ static void *ao_loop (void *this_gen) { pthread_mutex_unlock( &this->driver_lock ); - if( in_buf && in_buf->stream && !in_buf->stream->video_decoder_plugin ) { + /* we update current_extra_info if either there is no video stream that could do that + * or if the current_extra_info is getting too much out of date */ + if( in_buf && in_buf->stream && (!in_buf->stream->video_decoder_plugin || + in_buf->extra_info->vpts - in_buf->stream->current_extra_info->vpts > 30000)) { pthread_mutex_lock( &in_buf->stream->current_extra_info_lock ); extra_info_merge( in_buf->stream->current_extra_info, in_buf->extra_info ); pthread_mutex_unlock( &in_buf->stream->current_extra_info_lock ); -- cgit v1.2.3