summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmp3.c10
-rw-r--r--psdl.c2
2 files changed, 6 insertions, 6 deletions
diff --git a/cmp3.c b/cmp3.c
index f8b1b966..c6b61d90 100644
--- a/cmp3.c
+++ b/cmp3.c
@@ -136,9 +136,9 @@ cmp3_decode (void) {
if(stream.error!=MAD_ERROR_LOSTSYNC ||
stream.this_frame!=GuardPtr)
{
-// fprintf(stderr,"recoverable frame level error (%s)\n",
-// MadErrorString(&stream));
-// fflush(stderr);
+ fprintf(stderr,"recoverable frame level error (%s)\n",
+ MadErrorString(&stream));
+ fflush(stderr);
}
continue;
}
@@ -147,8 +147,8 @@ cmp3_decode (void) {
continue;
else
{
-// fprintf(stderr,"unrecoverable frame level error (%s).\n",
-// MadErrorString(&stream));
+ fprintf(stderr,"unrecoverable frame level error (%s).\n",
+ MadErrorString(&stream));
break;
}
}
diff --git a/psdl.c b/psdl.c
index 386dee5c..4ddc4360 100644
--- a/psdl.c
+++ b/psdl.c
@@ -113,7 +113,7 @@ psdl_callback (void* userdata, Uint8 *stream, int len) {
memset (stream, 0, len);
}
else if (codec->info.samplesPerSecond == sdl_player_freq) {
- codec->read (sdl_buffer, len);
+ codec->read (stream, len);
}
else {
int nsamples = len/4;