diff options
author | James Courtier-Dutton <jcdutton@users.sourceforge.net> | 2002-09-01 06:02:53 +0000 |
---|---|---|
committer | James Courtier-Dutton <jcdutton@users.sourceforge.net> | 2002-09-01 06:02:53 +0000 |
commit | 3e9d62067d9cfc0a366595a9eb17a3493fdefe46 (patch) | |
tree | cd95e8f0f269f7f1343c670d6b47f4057f891b12 | |
parent | 413dbbb6d427f5ba20affc378ce565db2bc2d6b5 (diff) | |
download | xine-lib-3e9d62067d9cfc0a366595a9eb17a3493fdefe46.tar.gz xine-lib-3e9d62067d9cfc0a366595a9eb17a3493fdefe46.tar.bz2 |
Improve a few debug print statements.
fix a wrong format statement.
CVS patchset: 2577
CVS date: 2002/09/01 06:02:53
-rw-r--r-- | src/libspudec/spu.c | 14 | ||||
-rw-r--r-- | src/libspudec/xine_decoder.c | 6 |
2 files changed, 10 insertions, 10 deletions
diff --git a/src/libspudec/spu.c b/src/libspudec/spu.c index 03b816ea4..c64dd699e 100644 --- a/src/libspudec/spu.c +++ b/src/libspudec/spu.c @@ -35,7 +35,7 @@ * along with this program; see the file COPYING. If not, write to * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. * - * $Id: spu.c,v 1.43 2002/07/20 16:28:14 mroi Exp $ + * $Id: spu.c,v 1.44 2002/09/01 06:02:53 jcdutton Exp $ * */ @@ -112,7 +112,7 @@ void spudec_decode_nav(spudec_decoder_t *this, buf_element_t *buf) { #endif nav_read_pci(&pci, p+1); #ifdef LOG_NAV - printf("libspudec:nav:hli_ss=%u, hli_s_ptm=%u, hli_e_ptm=%u, btn_sl_e_ptm=%u pts=%llu\n", + printf("libspudec:nav:hli_ss=%u, hli_s_ptm=%u, hli_e_ptm=%u, btn_sl_e_ptm=%u pts=%lli\n", pci.hli.hl_gi.hli_ss, pci.hli.hl_gi.hli_s_ptm, pci.hli.hl_gi.hli_e_ptm, @@ -176,13 +176,13 @@ void spudec_decode_nav(spudec_decoder_t *this, buf_element_t *buf) { /* This corrects for errors during estimation around discontinuity */ if( this->event.vpts < this->last_event_vpts ) { #ifdef LOG_BUTTON - fprintf(stdout, "libspudec: add_event estimation correction. vpts was %lld\n", this->event.vpts); + fprintf(stdout, "libspudec: add_event estimation correction. vpts was %lli\n", this->event.vpts); #endif this->event.vpts = this->last_event_vpts + 1; } this->last_event_vpts = this->event.vpts; #ifdef LOG_BUTTON - fprintf(stdout, "libspudec: add_event HIDE_MENU type=%d : current time=%lld, spu vpts=%lld, vpts_offset=%lld\n", + fprintf(stdout, "libspudec: add_event HIDE_MENU type=%d : current time=%lld, spu vpts=%lli, vpts_offset=%lli\n", this->event.event_type, this->xine->metronom->get_current_time(this->xine->metronom), this->event.vpts, @@ -283,7 +283,7 @@ void spudec_process (spudec_decoder_t *this, uint32_t stream_id) { cur_seq = &this->spudec_stream_state[stream_id].ra_seq; #ifdef LOG_DEBUG - printf ("spu: Found SPU from stream %d pts=%lld vpts=%lld\n",stream_id, + printf ("spu: Found SPU from stream %d pts=%lli vpts=%lli\n",stream_id, this->spudec_stream_state[stream_id].pts, this->spudec_stream_state[stream_id].vpts); #endif @@ -387,7 +387,7 @@ void spudec_process (spudec_decoder_t *this, uint32_t stream_id) { this->event.event_type = this->state.visible; /* - printf("spu event %d handle: %d vpts: %d\n", this->event.event_type, + printf("spu event %d handle: %d vpts: %lli\n", this->event.event_type, this->event.object.handle, this->event.vpts ); */ @@ -412,7 +412,7 @@ void spudec_process (spudec_decoder_t *this, uint32_t stream_id) { this->last_event_vpts = this->event.vpts; #ifdef LOG_BUTTON - fprintf(stderr, "libspudec: add_event type=%d : current time=%lld, spu vpts=%lld\n", + fprintf(stderr, "libspudec: add_event type=%d : current time=%lld, spu vpts=%lli\n", this->event.event_type, this->xine->metronom->get_current_time(this->xine->metronom), this->event.vpts); diff --git a/src/libspudec/xine_decoder.c b/src/libspudec/xine_decoder.c index dd3b5484c..13d6ceae1 100644 --- a/src/libspudec/xine_decoder.c +++ b/src/libspudec/xine_decoder.c @@ -19,7 +19,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: xine_decoder.c,v 1.71 2002/07/06 16:36:43 mroi Exp $ + * $Id: xine_decoder.c,v 1.72 2002/09/01 06:02:53 jcdutton Exp $ * * stuff needed to turn libspu into a xine decoder plugin */ @@ -209,7 +209,7 @@ static void spudec_event_listener(void *this_gen, xine_event_t *event_gen) { but->trans[0], but->trans[1], but->trans[2], but->trans[3]); printf ("\tleft = %u right = %u top = %u bottom = %u\n", but->left, but->right, but->top, but->bottom ); - printf ("\tpts = %u\n", + printf ("\tpts = %lli\n", but->pts ); #endif /* FIXME: Watch out for threads. We should really put a lock on this @@ -260,7 +260,7 @@ static void spudec_event_listener(void *this_gen, xine_event_t *event_gen) { if (this->vo_out) { ovl_instance = this->vo_out->get_overlay_instance (this->vo_out); #ifdef LOG_NAV - fprintf(stderr, "libspudec: add_event type=%d : current time=%lld, spu vpts=%lld\n", + fprintf(stderr, "libspudec: add_event type=%d : current time=%lld, spu vpts=%lli\n", overlay_event->event_type, this->xine->metronom->get_current_time(this->xine->metronom), overlay_event->vpts); |