]> git.sesse.net Git - vlc/blobdiff - src/playlist/item-ext.c
Preparse items added through the directory access or directly to the interface (Refs...
[vlc] / src / playlist / item-ext.c
index f420e9c2252258d155bc33b12b3515c99e2374e9..b52ed4348266fbebd2e21a304962c049ff2fcd9d 100644 (file)
@@ -19,7 +19,7 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 #include <stdlib.h>                                      /* free(), strtol() */
 #include <stdio.h>                                              /* sprintf() */
@@ -243,6 +243,11 @@ int playlist_AddItem( playlist_t *p_playlist, playlist_item_t *p_item,
         p_playlist->status.i_status = PLAYLIST_RUNNING;
     }
 
+    if( i_mode & PLAYLIST_PREPARSE )
+    {
+        playlist_PreparseEnqueue( p_playlist, &p_item->input );
+    }
+
     vlc_mutex_unlock( &p_playlist->object_lock );
 
     if( b_end == VLC_FALSE )
@@ -363,6 +368,10 @@ int playlist_NodeAddItem( playlist_t *p_playlist, playlist_item_t *p_item,
         }
         p_playlist->status.i_status = PLAYLIST_RUNNING;
     }
+    if( i_mode & PLAYLIST_PREPARSE )
+    {
+        playlist_PreparseEnqueue( p_playlist, &p_item->input );
+    }
 
     vlc_mutex_unlock( &p_playlist->object_lock );