-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello David,
I wasn't able to test my patch as i didn't have appropriate footage here,
but i guess that commenting the lines out is not the optimal way to go.
My patch replaces the printf( with fprintf(stderr, in order to let the
messages appear on the terminal but not on the stream. If it should work,
this could be a better solution.
Simeon
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAklZKtsACgkQph/voQkhF7ycUQCfd55SoOuaKi9VAeyZPd+Riq5D
RNkAn3nRkkwdjSYvHbyEuctqcK7lZ/no
=4tjA
-----END PGP SIGNATURE-----
diff --git a/libmpeg3/mpeg3demux.c b/libmpeg3/mpeg3demux.c
index a7ec1f8..f68bc91 100644
--- a/libmpeg3/mpeg3demux.c
+++ b/libmpeg3/mpeg3demux.c
@@ -1903,10 +1903,10 @@ int mpeg3_read_prev_packet(mpeg3_demuxer_t *demuxer)
/* Transport stream or elementary stream case */
if(file->packet_size > 0)
{
-printf("mpeg3_read_prev_packet 1 result=%d title=%d tell=%llx
program_byte=%llx\n", result, demuxer->current_title, mpeg3io_tell(title->fs),
demuxer->program_byte);
+fprintf(stderr, "mpeg3_read_prev_packet 1 result=%d title=%d tell=%llx
program_byte=%llx\n", result, demuxer->current_title, mpeg3io_tell(title->fs),
demuxer->program_byte);
demuxer->program_byte -= file->packet_size;
result = mpeg3_seek_phys(demuxer);
-printf("mpeg3_read_prev_packet 100 result=%d title=%d tell=%llx
program_byte=%llx\n", result, demuxer->current_title, mpeg3io_tell(title->fs),
demuxer->program_byte);
+fprintf(stderr, "mpeg3_read_prev_packet 100 result=%d title=%d tell=%llx
program_byte=%llx\n", result, demuxer->current_title, mpeg3io_tell(title->fs),
demuxer->program_byte);
}
else
{