summaryrefslogtreecommitdiffstats
path: root/gtk/src/audiohandler.c
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2016-11-10 11:43:03 -0800
committerJohn Stebbins <[email protected]>2016-11-10 11:43:41 -0800
commit9c77f245dcb44f68ac5d7a7a632ec042d995c117 (patch)
treeb13c88f4146685ffbaf923e5002fdf2b7553867b /gtk/src/audiohandler.c
parent6da76a389f2cff8e46b61acebf1924aa2b02def3 (diff)
LinGui: fix audio sanitizing after muxer change
Diffstat (limited to 'gtk/src/audiohandler.c')
-rw-r--r--gtk/src/audiohandler.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/gtk/src/audiohandler.c b/gtk/src/audiohandler.c
index c42ebdbfd..32228e5dc 100644
--- a/gtk/src/audiohandler.c
+++ b/gtk/src/audiohandler.c
@@ -273,13 +273,9 @@ ghb_select_audio_codec(gint mux, hb_audio_config_t *aconfig, gint acodec, gint f
for (enc = hb_audio_encoder_get_next(NULL); enc != NULL;
enc = hb_audio_encoder_get_next(enc))
{
- if (enc->codec == fallback &&
- !(enc->muxers & mux))
+ if (enc->codec == fallback && !(enc->muxers & mux))
{
- if ( mux & HB_MUX_MASK_MKV )
- fallback = HB_ACODEC_LAME;
- else
- fallback = HB_ACODEC_FFAAC;
+ fallback = hb_audio_encoder_get_default(mux);
break;
}
}
@@ -291,8 +287,7 @@ ghb_select_audio_codec(gint mux, hb_audio_config_t *aconfig, gint acodec, gint f
for (enc = hb_audio_encoder_get_next(NULL); enc != NULL;
enc = hb_audio_encoder_get_next(enc))
{
- if (enc->codec == acodec &&
- !(enc->muxers & mux))
+ if (enc->codec == acodec && !(enc->muxers & mux))
{
return fallback;
}