From f960fc7344f13893175b062bffc0877634aacceb Mon Sep 17 00:00:00 2001 From: dynaflash Date: Wed, 2 Apr 2008 17:21:57 +0000 Subject: MacGui: Fix issue where a new encode would retain one audio track from the previous encode if there was one. Bug introduced in rev 1367. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1369 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- macosx/Controller.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'macosx') diff --git a/macosx/Controller.mm b/macosx/Controller.mm index d8cf580db..c898fb838 100644 --- a/macosx/Controller.mm +++ b/macosx/Controller.mm @@ -1596,7 +1596,8 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It /* Audio tracks and mixdowns */ /* Lets make sure there arent any erroneous audio tracks in the job list, so lets make sure its empty*/ - for( int i = 0; i < hb_list_count(job->list_audio);i++) + int audiotrack_count = hb_list_count(job->list_audio); + for( int i = 0; i < audiotrack_count;i++) { hb_audio_t * temp_audio = (hb_audio_t*) hb_list_item( job->list_audio, 0 ); hb_list_rem(job->list_audio, temp_audio); -- cgit v1.2.3