diff options
author | dynaflash <[email protected]> | 2008-04-02 17:21:57 +0000 |
---|---|---|
committer | dynaflash <[email protected]> | 2008-04-02 17:21:57 +0000 |
commit | f960fc7344f13893175b062bffc0877634aacceb (patch) | |
tree | 4ba16d260784753f065eadfe842dc04fd1a60021 /macosx/Controller.mm | |
parent | 998ee41861d1879948110010769532bf2744737f (diff) |
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
Diffstat (limited to 'macosx/Controller.mm')
-rw-r--r-- | macosx/Controller.mm | 3 |
1 files changed, 2 insertions, 1 deletions
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); |