summaryrefslogtreecommitdiffstats
path: root/gtk/src/hb-backend.c
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2016-01-18 09:27:33 -0700
committerJohn Stebbins <[email protected]>2016-01-18 09:28:54 -0700
commit41e238c5f34d30a7d07c455d0de8334edb35ec90 (patch)
treef512c193ccc5b7db7499fb4acbc5c14f524507b6 /gtk/src/hb-backend.c
parentc751dbd9350375e5324c1ee715eef7c4adac79c4 (diff)
LinGui: remove unnecessary audio mixdown warning
When adding multiple items to the queue, this popup was just an annoyance.
Diffstat (limited to 'gtk/src/hb-backend.c')
-rw-r--r--gtk/src/hb-backend.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/gtk/src/hb-backend.c b/gtk/src/hb-backend.c
index 2552734b7..2d8f00910 100644
--- a/gtk/src/hb-backend.c
+++ b/gtk/src/hb-backend.c
@@ -4227,8 +4227,6 @@ ghb_validate_audio(GhbValue *settings, GtkWindow *parent)
asettings = ghb_array_get(audio_list, ii);
track = ghb_dict_get_int(asettings, "Track");
codec = ghb_settings_audio_encoder_codec(asettings, "Encoder");
- if (codec == HB_ACODEC_AUTO_PASS)
- continue;
aconfig = hb_list_audio_config_item(title->list_audio, track);
if (ghb_audio_is_passthru(codec) &&
@@ -4291,32 +4289,6 @@ ghb_validate_audio(GhbValue *settings, GtkWindow *parent)
const char *name = hb_audio_encoder_get_short_name(codec);
ghb_dict_set_string(asettings, "Encoder", name);
}
-
- const hb_mixdown_t *mix;
- mix = ghb_settings_mixdown(asettings, "Mixdown");
-
- const gchar *mix_unsup = NULL;
- if (!hb_mixdown_is_supported(mix->amixdown, codec, aconfig->in.channel_layout))
- {
- mix_unsup = mix->name;
- }
- if (mix_unsup)
- {
- message = g_strdup_printf(
- _("The source audio does not support %s mixdown.\n\n"
- "You should choose a different mixdown.\n"
- "If you continue, one will be chosen for you."), mix_unsup);
- if (!ghb_message_dialog(parent, GTK_MESSAGE_WARNING,
- message, _("Cancel"), _("Continue")))
- {
- g_free(message);
- return FALSE;
- }
- g_free(message);
- int amixdown = ghb_get_best_mix(aconfig, codec, mix->amixdown);
- ghb_dict_set_string(asettings, "Mixdown",
- hb_mixdown_get_short_name(amixdown));
- }
}
return TRUE;
}