Fix a couple warnings and problems

This commit is contained in:
Jaime Thomas
2008-05-21 01:38:44 +00:00
parent 7cff99ed50
commit 7625898596
3 changed files with 17 additions and 22 deletions

View File

@@ -114,27 +114,24 @@ ecdb_burn_project(Ecdb_Burn_Project *proj)
track = burn_track_create();
burn_track_define_data(track, 0, padding, 1, proj->burn_mode);
while ((source = ecdb_image_project(proj)))
{
if (burn_track_set_source(track, source) != BURN_SOURCE_OK)
{
printf("Error: Cannot attach source object to track "
"object!\n");
return FALSE;
}
burn_session_add_track(data->session, track, BURN_POS_END);
ecore_list_append(data->sources, source);
ecore_list_append(data->tracks, track);
i++;
}
if (!i)
source = ecdb_image_project(proj);
if (!source)
{
printf("Failed to add any files to burn disc!\n");
return FALSE;
}
if (burn_track_set_source(track, source) != BURN_SOURCE_OK)
{
printf("Error: Cannot attach source object to track "
"object!\n");
return FALSE;
}
burn_session_add_track(data->session, track, BURN_POS_END);
ecore_list_append(data->sources, source);
ecore_list_append(data->tracks, track);
opts = burn_write_opts_new(ECDB_PROJECT(proj)->drive->
tangible[0].drive);
burn_write_opts_set_perform_opc(opts, proj->opc);