Fix a couple warnings and problems
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user