Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] Re: [ANNOUNCE] mp3oss-0.8.0 plugin BUGFIX
On Mon, 23 Jun 2003, Gunnar Roth wrote:
> 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:
Sorry to nag, but...
How about using diff(1) when sending these patches? These non-patch(1)
patches are extremely difficult to read and even harder to apply. By just
running diff -u on the two files (old and patched), you get a nice clean
output which is easy to apply with and you can immediately see what
changed.
Thanks.
-jake
>
> 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
>
>
>
>
>
>
>
--
Jarkko Santala <jake@iki.fi> http://www.iki.fi/~jake/
System Administrator 2001:670:83:f08::/64
--
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.
Home |
Main Index |
Thread Index