comparison mplayer.c @ 18929:13fd66346cd5

Remove windows-specific hack that interfered with relative path handling and should not be needed anymore
author reimar
date Fri, 07 Jul 2006 11:20:06 +0000
parents d9a75b26da6c
children a3788ff5d0b6
comparison
equal deleted inserted replaced
18928:586777f09b1b 18929:13fd66346cd5
2651 char cwd[PATH_MAX+2]; 2651 char cwd[PATH_MAX+2];
2652 // Free Playtree and Playtree-Iter as it's not used by the GUI. 2652 // Free Playtree and Playtree-Iter as it's not used by the GUI.
2653 play_tree_iter_free(playtree_iter); 2653 play_tree_iter_free(playtree_iter);
2654 playtree_iter=NULL; 2654 playtree_iter=NULL;
2655 2655
2656 #ifndef WIN32 //Allow playing movies from network drives. eg. \\Desktop\c\somemovie.avi
2657 if (getcwd(cwd, PATH_MAX) != (char *)NULL) 2656 if (getcwd(cwd, PATH_MAX) != (char *)NULL)
2658 { 2657 {
2659 strcat(cwd, "/"); 2658 strcat(cwd, "/");
2660 // Prefix relative paths with current working directory 2659 // Prefix relative paths with current working directory
2661 play_tree_add_bpf(playtree, cwd); 2660 play_tree_add_bpf(playtree, cwd);
2662 } 2661 }
2663 #endif /* WIN32 */
2664 // Import initital playtree into GUI. 2662 // Import initital playtree into GUI.
2665 import_initial_playtree_into_gui(playtree, mconfig, enqueue); 2663 import_initial_playtree_into_gui(playtree, mconfig, enqueue);
2666 } 2664 }
2667 #endif /* HAVE_NEW_GUI */ 2665 #endif /* HAVE_NEW_GUI */
2668 2666