Commit f9aab1fe authored by Thomas Guillem's avatar Thomas Guillem Committed by Jean-Baptiste Kempf

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: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent dee576eb
...@@ -608,6 +608,10 @@ int libvlc_MetaRequest(libvlc_int_t *libvlc, input_item_t *item, ...@@ -608,6 +608,10 @@ int libvlc_MetaRequest(libvlc_int_t *libvlc, input_item_t *item,
if (unlikely(priv->parser == NULL)) if (unlikely(priv->parser == NULL))
return VLC_ENOMEM; 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); playlist_preparser_Push(priv->parser, item, i_options);
return VLC_SUCCESS; return VLC_SUCCESS;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment