| 4317 | } |
| 4318 | |
| 4319 | void |
| 4320 | ghb_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 | |
| 4355 | static gchar* |
| 4356 | working_status_string(signal_user_data_t *ud, ghb_instance_status_t *status) |
no test coverage detected