]> git.sesse.net Git - vlc/blobdiff - src/libvlc.c
libvlc_MetaRequest: increment item i_preparse_depth
[vlc] / 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;
 }