]> granicus.if.org Git - handbrake/commitdiff
LinGui: fix "Auto" audio encoder selection
authorjstebbins <jstebbins.hb@gmail.com>
Sat, 29 Oct 2011 17:40:22 +0000 (17:40 +0000)
committerjstebbins <jstebbins.hb@gmail.com>
Sat, 29 Oct 2011 17:40:22 +0000 (17:40 +0000)
When a fallback encoder is chosen, the actual encoder used should show
up in the audio list, but "Auto" should remain selected in the dropdown.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4327 b64f7644-9d1e-0410-96f1-a4d463321fa5

gtk/src/audiohandler.c

index 8cce163f6e7a462cf6b89f0037dc8a2b25890ad2..4f29253597b71399d10ab0c5a51e953d362b3f1d 100644 (file)
@@ -389,7 +389,7 @@ ghb_set_pref_audio_settings(gint titleindex, GValue *settings)
                        // HB_ACODEC_* are bit fields.  Treat acodec as mask
                        if (!(aconfig->in.codec & select_acodec & HB_ACODEC_PASS_MASK))
                        {
-                               if (acodec != HB_ACODEC_ANY)
+                               if (acodec != HB_ACODEC_AUTO_PASS)
                                        acodec = fallback;
                                // If we can't substitute the passthru with a suitable
                                // encoder and