Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] [ANNOUNCE] mp3oss-0.8.0 plugin BUGFIX



There was a small bug in mp3-player.c introduced by me, concerning
the close of the /dev/dsp file. This is fixed in the old archive at

http://home.pages.at/garvdr/vdr-mp3oss-0.8.0.tgz

you can fix this manually if you dont want to download
the whole archive again.


in playyer-mp3.c fom line 814 replace:

cMP3Player::~cMP3Player()

{

 if(sfd!=-1)

 {

   close(sfd);

   sfd=-1;

 }



 Detach();

 delete scan;

 delete playlist;

 delete shuffle;

 delete ringBuffer;

}



by

cMP3Player::~cMP3Player()

{

 Detach();

 if(sfd!=-1)

 {

close(sfd);

   sfd=-1;

 }

 delete scan;

 delete playlist;

 delete shuffle;

 delete ringBuffer;

}


This way the dsp device is closed after the player thread is finished.
The bug didnt appear on my computer but on the computer of
another user. A classic race condition.


regards,
gunnar






--
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.



Home | Main Index | Thread Index