[vlc-devel] [PATCH 03/11] input/input: load slaves from input items
Rémi Denis-Courmont
remi at remlab.net
Sat Apr 2 11:31:41 CEST 2016
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.
--
Rémi Denis-Courmont
http://www.remlab.net/
More information about the vlc-devel
mailing list