diff options
author | Stefan Holst <holstsn@users.sourceforge.net> | 2003-03-24 18:30:12 +0000 |
---|---|---|
committer | Stefan Holst <holstsn@users.sourceforge.net> | 2003-03-24 18:30:12 +0000 |
commit | f88124b25ae9b620d7921f35f3d1b8bb729410fb (patch) | |
tree | cf0839a8565815c45962ef57fb78354a214e36bf /src | |
parent | 6e941b25401cae733308044875cf671ec7ff341f (diff) | |
download | xine-lib-f88124b25ae9b620d7921f35f3d1b8bb729410fb.tar.gz xine-lib-f88124b25ae9b620d7921f35f3d1b8bb729410fb.tar.bz2 |
slightly better stream position heuristic
CVS patchset: 4475
CVS date: 2003/03/24 18:30:12
Diffstat (limited to 'src')
-rw-r--r-- | src/xine-engine/video_out.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/xine-engine/video_out.c b/src/xine-engine/video_out.c index 9e0fd35b5..19881ea7c 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.148 2003/03/06 16:49:33 guenter Exp $ + * $Id: video_out.c,v 1.149 2003/03/24 18:30:12 holstsn Exp $ * * frame allocation / queuing / scheduling / output functions */ @@ -684,7 +684,12 @@ static void overlay_and_display_frame (vos_t *this, vo_frame_driver_copy(img); pthread_mutex_lock( &img->stream->current_extra_info_lock ); - extra_info_merge( img->stream->current_extra_info, img->extra_info ); + { + int64_t diff; + diff = img->extra_info->vpts - img->stream->current_extra_info->vpts; + if ((diff > 3000) || (diff<-300000)) + extra_info_merge( img->stream->current_extra_info, img->extra_info ); + } pthread_mutex_unlock( &img->stream->current_extra_info_lock ); if (this->overlay_source) { |