From 25f65c0adcd22712fe4f0b9c730d436ee05eca01 Mon Sep 17 00:00:00 2001 From: Guenter Bartsch Date: Tue, 1 May 2001 21:55:23 +0000 Subject: thread lock and pts wrap detection for metronom CVS patchset: 53 CVS date: 2001/05/01 21:55:23 --- src/xine-engine/metronom.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/xine-engine/metronom.h') diff --git a/src/xine-engine/metronom.h b/src/xine-engine/metronom.h index 2ac1354cd..e051fc0da 100644 --- a/src/xine-engine/metronom.h +++ b/src/xine-engine/metronom.h @@ -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.h,v 1.2 2001/04/27 10:42:38 f1rmb Exp $ + * $Id: metronom.h,v 1.3 2001/05/01 21:55:23 guenter Exp $ * * metronom: general pts => virtual calculation/assoc * @@ -34,6 +34,7 @@ #include #include +#include typedef struct metronom_s metronom_t ; @@ -158,12 +159,16 @@ struct metronom_s { uint32_t sync_pts; uint32_t sync_vpts; + uint32_t video_wrap_offset; + uint32_t audio_wrap_offset; + /* video delta for wrong framerates */ uint32_t last_video_pts; uint32_t last_video_vpts; int num_video_vpts_guessed; int32_t video_pts_delta; + uint32_t last_audio_pts; int num_audio_samples_guessed; int32_t av_offset; @@ -171,6 +176,8 @@ struct metronom_s { struct timeval start_time; uint32_t start_pts, last_pts; int stopped ; + + pthread_mutex_t lock; }; metronom_t *metronom_init (); -- cgit v1.2.3