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

Function queue_reset_fail_action_cb

gtk/src/queuehandler.c:2359–2382  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2357}
2358
2359G_MODULE_EXPORT void
2360queue_reset_fail_action_cb (GSimpleAction *action, GVariant *param,
2361 signal_user_data_t *ud)
2362{
2363 int ii, count, status;
2364 GhbValue * queueDict, * uiDict;
2365
2366 count = ghb_array_len(ud->queue);
2367 for (ii = count - 1; ii >= 0; ii--)
2368 {
2369 queueDict = ghb_array_get(ud->queue, ii);
2370 uiDict = ghb_dict_get(queueDict, "uiSettings");
2371 status = ghb_dict_get_int(uiDict, "job_status");
2372 if (status == GHB_QUEUE_FAIL)
2373 {
2374 ghb_queue_update_status(ud, ii, GHB_QUEUE_PENDING);
2375 }
2376 }
2377 ghb_save_queue(ud->queue);
2378 queue_update_current_stats(ud);
2379 ghb_queue_select_log(ud);
2380 ghb_update_pending(ud);
2381 ghb_queue_buttons_grey(ud);
2382}
2383
2384G_MODULE_EXPORT void
2385queue_reset_action_cb (GSimpleAction *action, GVariant *param,

Callers

nothing calls this directly

Calls 7

ghb_dict_get_intFunction · 0.85
ghb_queue_update_statusFunction · 0.85
ghb_save_queueFunction · 0.85
ghb_queue_select_logFunction · 0.85
ghb_update_pendingFunction · 0.85
ghb_queue_buttons_greyFunction · 0.85

Tested by

no test coverage detected