[vlc-devel] [PATCH 02/10] aout: refactor aout_DecDelete

Thomas Guillem thomas at gllm.fr
Wed Mar 20 16:32:12 CET 2019


On Wed, Mar 20, 2019, at 03:43, Rémi Denis-Courmont wrote:
> Le mardi 19 mars 2019, 18:45:17 EET Thomas Guillem a écrit :
> > ---
> >  src/audio_output/dec.c | 14 ++++++++------
> >  1 file changed, 8 insertions(+), 6 deletions(-)
> > 
> > diff --git a/src/audio_output/dec.c b/src/audio_output/dec.c
> > index 91f9ccf2fe..d14218600b 100644
> > --- a/src/audio_output/dec.c
> > +++ b/src/audio_output/dec.c
> > @@ -132,14 +132,16 @@ void aout_DecDelete (audio_output_t *aout)
> >  {
> >      aout_owner_t *owner = aout_owner (aout);
> > 
> > -    if (owner->mixer_format.i_format)
> > -    {
> > -        aout_DecFlush(aout);
> > -        aout_FiltersDelete (aout, owner->filters);
> > -        aout_OutputDelete (aout);
> > -    }
> >      aout_volume_Delete (owner->volume);
> >      owner->volume = NULL;
> > +
> > +    if (!owner->mixer_format.i_format)
> > +        return;
> > +
> > +    aout_DecFlush(aout);
> > +    aout_OutputDelete (aout);
> > +
> > +    aout_FiltersDelete (aout, owner->filters);
> >  }
> 
> This is wrong.

I don't need this patch finally.

> 
> > 
> >  static int aout_CheckReady (audio_output_t *aout)
> 
> 
> -- 
> Rémi Denis-Courmont
> 
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel


More information about the vlc-devel mailing list