From be67e671058466a31ecd218a7360082037ac3f81 Mon Sep 17 00:00:00 2001 From: jstebbins Date: Thu, 3 Jan 2013 23:28:53 +0000 Subject: LinGui: fix selection of mixdown when using fallback audio encoder It was getting set to mono all the time :-\ git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5141 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- gtk/src/hb-backend.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gtk/src/hb-backend.c b/gtk/src/hb-backend.c index 38ccb00c9..5ab946f9b 100644 --- a/gtk/src/hb-backend.c +++ b/gtk/src/hb-backend.c @@ -1666,6 +1666,10 @@ ghb_get_best_mix(hb_audio_config_t *aconfig, gint acodec, gint mix) { gint layout; layout = aconfig ? aconfig->in.channel_layout : AV_CH_LAYOUT_5POINT1; + + if (mix == HB_AMIXDOWN_NONE) + mix = hb_audio_mixdowns[hb_audio_mixdowns_count-1].amixdown; + return hb_get_best_mixdown( acodec, layout, mix ); } -- cgit v1.2.3