OSDN Git Service

MacGui: Fix issue where a new encode would retain one audio track from the previous...
authordynaflash <dynaflash@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Wed, 2 Apr 2008 17:21:57 +0000 (17:21 +0000)
committerdynaflash <dynaflash@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Wed, 2 Apr 2008 17:21:57 +0000 (17:21 +0000)
git-svn-id: svn://localhost/HandBrake/trunk@1369 b64f7644-9d1e-0410-96f1-a4d463321fa5

macosx/Controller.mm

index d8cf580..c898fb8 100644 (file)
@@ -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);