8 int del_clip_set(theDb *db, int clip_id)
10 if( db->clip_set.FindId(clip_id) ) return 1;
11 db->clip_set.Destruct();
12 db->clip_set.Deallocate();
14 if( Clip_viewsLoc::ikey_Clip_access(db->clip_views,clip_id).Find() ) return 1;
15 db->clip_views.Destruct();
16 db->clip_views.Deallocate();
18 while( !TimelineLoc::ikey_Sequences(db->timeline,clip_id,0).Locate() ) {
19 if( clip_id != (int)db->timeline.Clip_id() ) break;
20 int frame_id = db->timeline.Frame_id();
21 db->timeline.Destruct();
22 db->timeline.Deallocate();
23 if( !TimelineLoc::ikey_Timelines(db->timeline, frame_id).Locate() &&
24 frame_id == (int)db->timeline.Frame_id() ) continue;
25 if( db->video_frame.FindId(frame_id) ) continue;
26 db->video_frame.Destruct();
27 db->video_frame.Deallocate();
32 int main(int ac, char **av)
37 //db.access(av[1], 34543, 0);
38 if( !db.opened() || db.error() ) exit(1);
40 del_clip_set(&db,atoi(av[2]));