diff options
author | Petri Hintukainen <phintuka@users.sourceforge.net> | 2011-11-23 11:23:39 +0200 |
---|---|---|
committer | Petri Hintukainen <phintuka@users.sourceforge.net> | 2011-11-23 11:23:39 +0200 |
commit | f8f3dd176e80b0d58bdfcee3b7a08c3a7ff9735b (patch) | |
tree | 13c9f0405715aa2c4a52e8e5489a0f02408cf218 /src | |
parent | 2dbf881b62ec7b32d3440205432c8c7cc11bd736 (diff) | |
download | xine-lib-f8f3dd176e80b0d58bdfcee3b7a08c3a7ff9735b.tar.gz xine-lib-f8f3dd176e80b0d58bdfcee3b7a08c3a7ff9735b.tar.bz2 |
spudvb: use int64_t for pts. Fixed printf formats.
Diffstat (limited to 'src')
-rw-r--r-- | src/libspudvb/xine_spudvb_decoder.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libspudvb/xine_spudvb_decoder.c b/src/libspudvb/xine_spudvb_decoder.c index 88395d0ce..f3ad9888c 100644 --- a/src/libspudvb/xine_spudvb_decoder.c +++ b/src/libspudvb/xine_spudvb_decoder.c @@ -99,8 +99,8 @@ typedef struct dvb_spu_decoder_s { char *pes_pkt_wrptr; unsigned int pes_pkt_size; - uint64_t vpts; - uint64_t end_vpts; + int64_t vpts; + int64_t end_vpts; pthread_t dvbsub_timer_thread; struct timespec dvbsub_hide_timeout; @@ -696,7 +696,7 @@ static void draw_subtitles (dvb_spu_decoder_t * this) pthread_mutex_lock(&this->dvbsub_osd_mutex); #ifdef LOG - printf("SPUDVB: this->vpts=%llu\n",this->vpts); + printf("SPUDVB: this->vpts=%"PRId64"\n", this->vpts); #endif for ( r=0; r<MAX_REGIONS; r++ ) { #ifdef LOG @@ -783,7 +783,7 @@ static void spudec_decode_data (spu_decoder_t * this_gen, buf_element_t * buf) const int64_t curvpts = clock->get_current_time( clock ); /* if buf->pts is unreliable, show page asap (better than nothing) */ #ifdef LOG - printf("SPUDVB: spu_vpts=%lld - current_vpts=%lld\n", vpts, curvpts); + printf("SPUDVB: spu_vpts=%"PRId64" - current_vpts=%"PRId64"\n", vpts, curvpts); #endif if ( vpts<=curvpts || (vpts-curvpts)>(5*90000) ) this->vpts = 0; |