bsd lang segv fix, enable bsd lv2, lv2 gui enable fix, proxy/ffmpeg toggle resize...
[goodguy/history.git] / cinelerra-5.1 / cinelerra / indexable.C
index e7f090c483565f1cc5c5f878fb5103c35e0762db..3aacee67348734a697556c9b6f1e9af2266fb1b4 100644 (file)
@@ -54,7 +54,7 @@ int64_t Indexable::get_audio_samples()
        return 0;
 }
 
-void Indexable::update_path(char *new_path)
+void Indexable::update_path(const char *new_path)
 {
        strcpy(path, new_path);
 }
@@ -62,9 +62,9 @@ void Indexable::update_path(char *new_path)
 void Indexable::update_index(Indexable *src)
 {
        if( index_state == src->index_state ) return;
-       index_state->remove_user();
+       if( index_state ) index_state->remove_user();
        index_state = src->index_state;
-       index_state->add_user();
+       if( index_state ) index_state->add_user();
 }