winemp3: Change a few more fprintf's to wine logs.
This commit is contained in:
parent
5469551f6b
commit
f5fdb793ed
|
@ -24,6 +24,7 @@
|
||||||
#include "mpg123.h"
|
#include "mpg123.h"
|
||||||
#include "mpglib.h"
|
#include "mpglib.h"
|
||||||
|
|
||||||
|
WINE_DEFAULT_DEBUG_CHANNEL(mpeg3);
|
||||||
|
|
||||||
BOOL InitMP3(struct mpstr *mp)
|
BOOL InitMP3(struct mpstr *mp)
|
||||||
{
|
{
|
||||||
|
@ -72,12 +73,13 @@ static struct buf *addbuf(struct mpstr *mp,const unsigned char *buf,int size)
|
||||||
|
|
||||||
nbuf = malloc( sizeof(struct buf) );
|
nbuf = malloc( sizeof(struct buf) );
|
||||||
if(!nbuf) {
|
if(!nbuf) {
|
||||||
fprintf(stderr,"Out of memory!\n");
|
WARN("Out of memory!\n");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
nbuf->pnt = malloc(size);
|
nbuf->pnt = malloc(size);
|
||||||
if(!nbuf->pnt) {
|
if(!nbuf->pnt) {
|
||||||
free(nbuf);
|
free(nbuf);
|
||||||
|
WARN("Out of memory!\n");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
nbuf->size = size;
|
nbuf->size = size;
|
||||||
|
@ -156,7 +158,7 @@ int decodeMP3(struct mpstr *mp,const unsigned char *in,int isize,unsigned char *
|
||||||
int len;
|
int len;
|
||||||
|
|
||||||
if(osize < 4608) {
|
if(osize < 4608) {
|
||||||
fprintf(stderr,"To less out space\n");
|
ERR("Output buffer too small\n");
|
||||||
return MP3_ERR;
|
return MP3_ERR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -229,7 +231,8 @@ int set_pointer(struct mpstr *mp, long backstep)
|
||||||
{
|
{
|
||||||
unsigned char *bsbufold;
|
unsigned char *bsbufold;
|
||||||
if(mp->fsizeold < 0 && backstep > 0) {
|
if(mp->fsizeold < 0 && backstep > 0) {
|
||||||
fprintf(stderr,"Can't step back %ld!\n",backstep);
|
/* This is not a bug if we just did seeking, the first frame is dropped then */
|
||||||
|
WARN("Can't step back %ld!\n",backstep);
|
||||||
return MP3_ERR;
|
return MP3_ERR;
|
||||||
}
|
}
|
||||||
bsbufold = mp->bsspace[mp->bsnum] + 512;
|
bsbufold = mp->bsspace[mp->bsnum] + 512;
|
||||||
|
|
Loading…
Reference in New Issue