From: Thomas Guillem Date: Wed, 25 Mar 2015 14:46:25 +0000 (+0000) Subject: libvlc_MetaRequest: increment item i_preparse_depth X-Git-Url: https://git.sesse.net/?p=vlc;a=commitdiff_plain;h=f9aab1fe3415553299d5956f520571ce195939b0 libvlc_MetaRequest: increment item i_preparse_depth libvlc_MetaRequest comes from the user, so we can increment i_preparse_depth to force a preparsing. Signed-off-by: Jean-Baptiste Kempf --- diff --git a/src/libvlc.c b/src/libvlc.c index cff3784c16..34824da89b 100644 --- a/src/libvlc.c +++ b/src/libvlc.c @@ -608,6 +608,10 @@ int libvlc_MetaRequest(libvlc_int_t *libvlc, input_item_t *item, if (unlikely(priv->parser == NULL)) return VLC_ENOMEM; + vlc_mutex_lock( &item->lock ); + if( item->i_preparse_depth == 0 ) + item->i_preparse_depth = 1; + vlc_mutex_unlock( &item->lock ); playlist_preparser_Push(priv->parser, item, i_options); return VLC_SUCCESS; }