]> git.sesse.net Git - vlc/commitdiff
libvlc_MetaRequest: increment item i_preparse_depth
authorThomas Guillem <thomas@gllm.fr>
Wed, 25 Mar 2015 14:46:25 +0000 (14:46 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 26 Mar 2015 15:08:54 +0000 (16:08 +0100)
libvlc_MetaRequest comes from the user, so we can increment i_preparse_depth to
force a preparsing.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
src/libvlc.c

index cff3784c1660d59886f8ce6e58967df8811a4fbc..34824da89be079c84378aeb5ae619af510aff593 100644 (file)
@@ -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;
 }