All pastes #960288 Raw Edit

removing job audio crashes

public text v1 · immutable
#960288 ·published 2008-03-28 00:11 UTC
rendered paste body
 /* Lets make sure there arent any erroneous audio tracks in the job list, so lets make sure its empty*/
    int num_audio_tracks = hb_list_count(job->list_audio);
    for( int i = 0; i < num_audio_tracks; i++ )
    {
        audio = hb_audio_copy( (hb_audio_t *) hb_list_item( job->list_audio, i ) );
        hb_list_rem(job->list_audio, audio); // issue, this give us a memory crash ... FIX ME!!!
    }
    /* Now lets add our new tracks to the audio list here */