- PLModel *model = new PLModel( p_playlist, p_intf, p_root, this );
- mainView = new StandardPLPanel( this, p_intf, p_root, selector, model );
+ PLModel *model = PLModel::getPLModel( p_intf );
+#ifdef MEDIA_LIBRARY
+ MLModel *mlmodel = new MLModel( p_intf, this );
+ mainView = new StandardPLPanel( this, p_intf, p_root, selector, model, mlmodel );
+#else
+ mainView = new StandardPLPanel( this, p_intf, p_root, selector, model, NULL );
+#endif