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

Function queue_pending_count

gtk/src/callbacks.c:4274–4295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4272}
4273
4274static gint
4275queue_pending_count(GhbValue *queue)
4276{
4277 gint nn, ii, count;
4278 GhbValue *queueDict, *uiDict;
4279 gint status;
4280
4281 nn = 0;
4282 count = ghb_array_len(queue);
4283 for (ii = 0; ii < count; ii++)
4284 {
4285
4286 queueDict = ghb_array_get(queue, ii);
4287 uiDict = ghb_dict_get(queueDict, "uiSettings");
4288 status = ghb_dict_get_int(uiDict, "job_status");
4289 if (status == GHB_QUEUE_PENDING)
4290 {
4291 nn++;
4292 }
4293 }
4294 return nn;
4295}
4296
4297void
4298ghb_update_pending(signal_user_data_t *ud)

Callers 2

ghb_update_pendingFunction · 0.85
update_queue_labelsFunction · 0.85

Calls 1

ghb_dict_get_intFunction · 0.85

Tested by

no test coverage detected