render config sample/pixel fmt, piped files, ffmpeg raw yuv/rgb
[goodguy/history.git] / cinelerra-5.1 / cinelerra / confirmsave.C
index 5fe6ab90baae8e4f811cbc6ad0f11d1fe3531d0e..3542a049d5f0be63886eb4654f36523bf33d1049 100644 (file)
@@ -47,14 +47,12 @@ int ConfirmSave::test_file(MWindow *mwindow, char *path)
 
 int ConfirmSave::test_files(MWindow *mwindow, ArrayList<char*> *paths)
 {
-       FILE *file;
        ArrayList<BC_ListBoxItem*> list;
        int result = 0;
 
        for(int i = 0; i < paths->size(); i++) {
                char *path = paths->values[i];
-               if( (file=fopen(path, "r")) != 0 ) {
-                       fclose(file);
+               if( !access(path, F_OK) ) {
                        list.append(new BC_ListBoxItem(path));
                }
        }