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

Function get_extension

gtk/src/callbacks.c:708–723  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

706}
707
708static const gchar*
709get_extension(signal_user_data_t *ud, GhbValue *settings)
710{
711 const char *mux_id;
712 const hb_container_t *mux;
713
714 mux_id = ghb_dict_get_string(settings, "FileFormat");
715 mux = ghb_lookup_container_by_name(mux_id);
716
717 if ((mux->format & HB_MUX_MASK_MP4) &&
718 ghb_dict_get_bool(ud->prefs, "UseM4v"))
719 {
720 return "m4v";
721 }
722 return mux->default_extension;
723}
724
725gboolean
726ghb_check_name_template (signal_user_data_t *ud, const char *str)

Callers 2

set_destination_settingsFunction · 0.85

Calls 3

ghb_dict_get_stringFunction · 0.85
ghb_dict_get_boolFunction · 0.85

Tested by

no test coverage detected