- if( !fileinfo_root )
- {
- /* On linux, the first argument of wxTreeCtrl::AddRoot() can be
- * retrieved with the GetItemText() method, but it doesn't work on
- * Windows when the wxTR_HIDE_ROOT style is set. That's why we need to
- * use the fileinfo_root_label variable... */
- fileinfo_root =
- fileinfo_tree->AddRoot( wxL2U(p_input->input.p_item->psz_name) );
- fileinfo_root_label = wxL2U(p_input->input.p_item->psz_name);
- }
- else if( fileinfo_root_label == wxL2U(p_input->input.p_item->psz_name) &&
- b_need_update == VLC_FALSE )
- {
- vlc_object_release(p_input);
- return;
- }
-
- /* We rebuild the tree from scratch */
- fileinfo_tree->DeleteChildren( fileinfo_root );
- fileinfo_root_label = wxL2U(p_input->input.p_item->psz_name);
-