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

Function ghb_start_next_job

gtk/src/callbacks.c:4319–4353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4317}
4318
4319void
4320ghb_start_next_job(signal_user_data_t *ud)
4321{
4322 gint count, ii;
4323 GhbValue *queueDict, *uiDict;
4324 gint status;
4325 GtkWidget *progress;
4326
4327 ghb_log_func();
4328 progress = ghb_builder_widget("progressbar");
4329 gtk_widget_set_visible(progress, TRUE);
4330
4331 count = ghb_array_len(ud->queue);
4332 for (ii = 0; ii < count; ii++)
4333 {
4334
4335 queueDict = ghb_array_get(ud->queue, ii);
4336 uiDict = ghb_dict_get(queueDict, "uiSettings");
4337 status = ghb_dict_get_int(uiDict, "job_status");
4338 if (status == GHB_QUEUE_PENDING)
4339 {
4340 inhibit_suspend();
4341 submit_job(ud, queueDict);
4342 ghb_update_pending(ud);
4343 return;
4344 }
4345 }
4346 // Nothing pending
4347 uninhibit_suspend();
4348 ghb_send_notification(GHB_NOTIFY_QUEUE_DONE, 0, ud);
4349 queue_done_action(ud);
4350 ghb_update_pending(ud);
4351 gtk_widget_set_visible(progress, FALSE);
4352 ghb_reset_disk_space_check();
4353}
4354
4355static gchar*
4356working_status_string(signal_user_data_t *ud, ghb_instance_status_t *status)

Callers 2

ghb_backend_eventsFunction · 0.85
queue_start_action_cbFunction · 0.85

Calls 9

ghb_builder_widgetFunction · 0.85
ghb_dict_get_intFunction · 0.85
inhibit_suspendFunction · 0.85
submit_jobFunction · 0.85
ghb_update_pendingFunction · 0.85
uninhibit_suspendFunction · 0.85
ghb_send_notificationFunction · 0.85
queue_done_actionFunction · 0.85

Tested by

no test coverage detected