[vlc-devel] [PATCH 03/11] input/input: load slaves from input items

Thomas Guillem thomas at gllm.fr
Mon Apr 4 10:26:00 CEST 2016



On Sat, Apr 2, 2016, at 11:31, Rémi Denis-Courmont wrote:
> On Friday 01 April 2016 10:31:02 Thomas Guillem wrote:
> > From: Benjamin Adolphi <b.adolphi at gmail.com>
> > 
> > ---
> >  src/input/input.c | 40 ++++++++++++++++++++++++++++++++++++++++
> >  1 file changed, 40 insertions(+)
> > 
> > diff --git a/src/input/input.c b/src/input/input.c
> > index a226d55..4d4222e 100644
> > --- a/src/input/input.c
> > +++ b/src/input/input.c
> > @@ -1007,6 +1007,46 @@ static void LoadSubtitles( input_thread_t *p_input )
> >          }
> >          free( psz_autopath );
> > 
> > +        /* Add subtitles found by the directory demuxer */
> > +        vlc_mutex_lock( &p_input->p->p_item->lock );
> > +        input_item_t *p_item = p_input->p->p_item;
> > +        for( int i = 0; i < p_item->i_slaves; i++ )
> > +        {
> > +            input_item_slave *p_slave = p_item->pp_slaves[i];
> > +            if( p_slave->i_type == SLAVE_TYPE_SPU )
> > +            {
> > +                bool added = false;
> > +                const char *psz_uri = strstr( p_slave->psz_uri, "file://"
> 
> Nonsense.

This part is removed by the last patch (that handle both audio/spu
slaves), we'll merge them.

> 
> -- 
> Rémi Denis-Courmont
> http://www.remlab.net/
> 
> _______________________________________________
> 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