- PL_LOCK; /* playlist_NodeCreate will check for it */
- p_playlist->p_root_category = playlist_NodeCreate( p_playlist, NULL, NULL,
+ /* Fetcher */
+ p->p_fetcher = playlist_fetcher_New( p_playlist );
+ if( unlikely(p->p_fetcher == NULL) )
+ {
+ msg_Err( p_playlist, "cannot create fetcher" );
+ p->p_preparser = NULL;
+ }
+ else
+ { /* Preparse */
+ p->p_preparser = playlist_preparser_New( p_playlist, p->p_fetcher );
+ if( unlikely(p->p_preparser == NULL) )
+ msg_Err( p_playlist, "cannot create preparser" );
+ }
+
+ /* Create the root node */
+ PL_LOCK;
+ p_playlist->p_root = playlist_NodeCreate( p_playlist, NULL, NULL,