-int MWindow::edl_to_nested(EDL *new_edl,
- EDL *nested_edl)
-{
-
-// Keep frame rate, sample rate, and output size unchanged.
-// These parameters would revert the project if VWindow displayed an asset
-// of different size than the project.
-
-
-
-// Nest all video & audio outputs
- new_edl->session->video_tracks = 1;
- new_edl->session->audio_tracks = nested_edl->session->audio_channels;
- new_edl->create_default_tracks();
-
-
-
- new_edl->insert_asset(0,
- nested_edl,
- 0,
- 0,
- 0);
-
- char string[BCTEXTLEN];
- FileSystem fs;
- fs.extract_name(string, nested_edl->path);
-//printf("MWindow::edl_to_nested %p %s\n", nested_edl, nested_edl->path);
-
- strcpy(new_edl->local_session->clip_title, string);
-
- return 0;
-}