MCPcopy Create free account
hub / github.com/HandBrake/HandBrake / ghb_audio_quality_enabled

Function ghb_audio_quality_enabled

gtk/src/audiohandler.c:42–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40static gboolean block_updates = FALSE;
41
42gboolean ghb_audio_quality_enabled(const GhbValue *asettings)
43{
44 int bitrate;
45 double quality;
46 GhbValue * val;
47
48 bitrate = ghb_dict_get_int(asettings, "Bitrate");
49 quality = ghb_dict_get_double(asettings, "Quality");
50 val = ghb_dict_get(asettings, "Quality");
51
52 return !(bitrate > 0 || val == NULL || quality == HB_INVALID_AUDIO_QUALITY);
53}
54
55static void
56ghb_sanitize_audio_settings(GhbValue *settings, GhbValue *asettings)

Callers 5

audio_codec_changed_cbFunction · 0.85
audio_bitrate_changed_cbFunction · 0.85

Calls 2

ghb_dict_get_intFunction · 0.85
ghb_dict_get_doubleFunction · 0.85

Tested by

no test coverage detected