[MPlayer-dev-eng] [PATCH] Fix a sndio crash when exiting in muted state

Alexander Strasser eclipse7 at gmx.net
Fri Mar 24 22:38:22 EET 2023


Hi Brad,

On 2023-03-22 22:58 +0100, Reimar Döffinger wrote:
> > Index: libao2/ao_sndio.c
> > ===================================================================
> > --- libao2/ao_sndio.c (revision 38412)
> > +++ libao2/ao_sndio.c (working copy)
> > @@ -159,6 +159,7 @@
> >     pfds = NULL;
> >     sio_close(hdl);
> >     hdl = NULL;
> > +    havevol = 0;
> >     return 0;
> > }
> >
> > @@ -172,6 +173,7 @@
> >     hdl = NULL;
> >     free(pfds);
> >     pfds = NULL;
> > +    havevol = 0;
> > }
>
> Well, it's probably a good idea to do that, but a aoctl happening after uninit (if I understand right) is the far worse issue an probably needs to be fixed by itself.


Could you test if the attached patch also fixes the issues you observed?

Only lightly tested but it would help if you could confirm if it fixes
the problem.


Thanks,
  Alexander
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-mplayer-Do-not-un-initialize-components-before-exit_.patch
Type: text/x-diff
Size: 1731 bytes
Desc: not available
URL: <https://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20230324/81d59bce/attachment.patch>


More information about the MPlayer-dev-eng mailing list