fix problem of using opengl transitions with Motion51 when in OpenGL mode
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / indexfile.C
index b8c0af6957a57b2c7eb96df02678e5977e24a8cb..977ad1cbfd5c99cb7239dca14479baed5570d691 100644 (file)
@@ -228,7 +228,7 @@ void IndexFile::delete_index(Preferences *preferences,
        char index_filename[BCTEXTLEN];
        char source_filename[BCTEXTLEN];
        const char *path = indexable->path;
-
+       if( !*path ) return;
        get_index_filename(source_filename,
                preferences->index_directory,
                index_filename, path, suffix);
@@ -350,7 +350,7 @@ int IndexFile::open_source()
        }
        else
        {
-               TransportCommand command;
+               TransportCommand command(mwindow->preferences);
                command.command = NORMAL_FWD;
                command.get_edl()->copy_all((EDL*)indexable);
                command.change_type = CHANGE_ALL;