summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel Freitas <miguelfreitas@users.sourceforge.net>2003-12-30 02:16:43 +0000
committerMiguel Freitas <miguelfreitas@users.sourceforge.net>2003-12-30 02:16:43 +0000
commit32d5ee62c3b60153894493436e1d2c612526b0b0 (patch)
treec89588badd4a36175eaeafb76cbf5b7dc4436c06
parent23a431635e865c6ba2dc00b3d4be33cb47ab20fe (diff)
downloadxine-lib-32d5ee62c3b60153894493436e1d2c612526b0b0.tar.gz
xine-lib-32d5ee62c3b60153894493436e1d2c612526b0b0.tar.bz2
easier debugging with --verbose
CVS patchset: 5962 CVS date: 2003/12/30 02:16:43
-rw-r--r--src/libsputext/xine_decoder.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/libsputext/xine_decoder.c b/src/libsputext/xine_decoder.c
index d8eb3e614..edc05afdb 100644
--- a/src/libsputext/xine_decoder.c
+++ b/src/libsputext/xine_decoder.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: xine_decoder.c,v 1.71 2003/12/14 22:13:24 siggi Exp $
+ * $Id: xine_decoder.c,v 1.72 2003/12/30 02:16:43 miguelfreitas Exp $
*
*/
@@ -413,11 +413,14 @@ static void spudec_decode_data (spu_decoder_t *this_gen, buf_element_t *buf) {
}
- lprintf("decoder data [%s]\n", this->text[0]);
- lprintf("mode %d timing %d->%d\n", uses_time, start, end);
+ xprintf(this->class->xine, XINE_VERBOSITY_DEBUG,
+ "libsputext: decoder data [%s]\n", this->text[0]);
+ xprintf(this->class->xine, XINE_VERBOSITY_DEBUG,
+ "libsputext: mode %d timing %d->%d\n", uses_time, start, end);
if( end <= start ) {
- lprintf("libsputext: discarding subtitle with invalid timing\n");
+ xprintf(this->class->xine, XINE_VERBOSITY_DEBUG,
+ "libsputext: discarding subtitle with invalid timing\n");
return;
}
@@ -477,7 +480,8 @@ static void spudec_decode_data (spu_decoder_t *this_gen, buf_element_t *buf) {
/* discard old subtitles */
if( diff < 0 ) {
- lprintf("discarding old\n");
+ xprintf(this->class->xine, XINE_VERBOSITY_DEBUG,
+ "libsputext: discarding old subtitle\n");
return;
}
@@ -504,7 +508,8 @@ static void spudec_decode_data (spu_decoder_t *this_gen, buf_element_t *buf) {
/* discard old subtitles */
if( diff < 0 ) {
- lprintf("discarding old\n");
+ xprintf(this->class->xine, XINE_VERBOSITY_DEBUG,
+ "libsputext: discarding old subtitle\n");
return;
}