From 998ee41861d1879948110010769532bf2744737f Mon Sep 17 00:00:00 2001 From: dynaflash Date: Wed, 2 Apr 2008 04:42:08 +0000 Subject: MacGui: Fix audio issue where both tracks would use the first source audio track regardless of what source track was chosen. Bug introduced in rev 1367 git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1368 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- macosx/Controller.mm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/macosx/Controller.mm b/macosx/Controller.mm index 56ad64242..d8cf580db 100644 --- a/macosx/Controller.mm +++ b/macosx/Controller.mm @@ -1608,7 +1608,7 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It //audio = (hb_audio_config_t *) hb_list_audio_config_item( title->list_audio, [fAudLang1PopUp indexOfSelectedItem] - 1); audio = (hb_audio_config_t *) calloc(1, sizeof(*audio)); hb_audio_config_init(audio); - + audio->in.track = [fAudLang1PopUp indexOfSelectedItem] - 1; /* We go ahead and assign values to our audio->out. */ audio->out.track = [fAudLang1PopUp indexOfSelectedItem] - 1; if ([[fAudTrack1MixPopUp titleOfSelectedItem] isEqualToString: @"AC3 Passthru"]) @@ -1639,7 +1639,7 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It //audio = (hb_audio_config_t *) hb_list_audio_config_item( title->list_audio, [fAudLang1PopUp indexOfSelectedItem] - 1 ); audio = (hb_audio_config_t *) calloc(1, sizeof(*audio)); hb_audio_config_init(audio); - + audio->in.track = [fAudLang1PopUp indexOfSelectedItem] - 1; /* We go ahead and assign values to our audio->out. */ audio->out.track = [fAudLang1PopUp indexOfSelectedItem] - 1; audio->out.codec = HB_ACODEC_AC3; @@ -1662,7 +1662,7 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It /* Now we modify it according to the gui settings for the specified track number */ audio = (hb_audio_config_t *) calloc(1, sizeof(*audio)); hb_audio_config_init(audio); - + audio->in.track = [fAudLang2PopUp indexOfSelectedItem] - 1; /* We go ahead and assign values to our audio->out. */ audio->out.track = [fAudLang2PopUp indexOfSelectedItem] - 1; if ([[fAudTrack2MixPopUp titleOfSelectedItem] isEqualToString: @"AC3 Passthru"]) @@ -1691,7 +1691,7 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It //audio = (hb_audio_config_t *) hb_list_audio_config_item( title->list_audio, [fAudLang2PopUp indexOfSelectedItem] - 1 ); audio = (hb_audio_config_t *) calloc(1, sizeof(*audio)); hb_audio_config_init(audio); - + audio->in.track = [fAudLang2PopUp indexOfSelectedItem] - 1; /* We go ahead and assign values to our audio->out. */ audio->out.track = [fAudLang2PopUp indexOfSelectedItem] - 1; audio->out.codec = HB_ACODEC_AC3; -- cgit v1.2.3