the build of vdr-mp3 fails during the fc26 mass build with this error: error: call of
overloaded 'abs(unsigned int)' is ambiguous
build.log:
http://koji.rpmfusion.org/kojifiles/work/tasks/811/90811/build.log
This is the part of the affected code:
bool cOutputOss::Reset(unsigned int sr)
{
if(fd>=0) {
CHECK(ioctl(fd,SNDCTL_DSP_SYNC,0));
int format=AFMT_S16_LE;
CHECK(ioctl(fd,SNDCTL_DSP_SETFMT,&format));
if(format==AFMT_S16_LE) {
int channels=2;
CHECK(ioctl(fd,SNDCTL_DSP_CHANNELS,&channels));
if(channels==2) {
int real=sr;
CHECK(ioctl(fd,SNDCTL_DSP_SPEED,&real));
d(printf("oss: DSP samplerate now %d\n",real))
if((unsigned int)abs(real-sr)<sr/50) {
outSr=sr;
d(printf("mp3-oss: DSP reset done\n"))
return true;
}
how can i fix this ?