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

Function show_progress_json

test/test.c:866–877  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

864}
865
866static void show_progress_json(hb_state_t * state)
867{
868 hb_dict_t * state_dict;
869 char * state_json;
870
871 state_dict = hb_state_to_dict(state);
872 state_json = hb_value_get_json(state_dict);
873 hb_value_free(&state_dict);
874 fprintf(stdout, "Progress: %s\n", state_json);
875 free(state_json);
876 fflush(stdout);
877}
878
879static int HandleEvents(hb_handle_t * h, hb_dict_t *preset_dict)
880{

Callers 1

HandleEventsFunction · 0.85

Calls 3

hb_state_to_dictFunction · 0.85
hb_value_get_jsonFunction · 0.85
hb_value_freeFunction · 0.85

Tested by

no test coverage detected