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

Function ghb_find_queue_job

gtk/src/queuehandler.c:1511–1540  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1509}
1510
1511gint ghb_find_queue_job (GhbValue *queue, gint unique_id, GhbValue **job)
1512{
1513 GhbValue *queueDict, *uiDict;
1514 gint ii, count;
1515 gint job_unique_id;
1516
1517 if (job != NULL)
1518 {
1519 *job = NULL;
1520 }
1521 if (unique_id == 0) // Invalid Id
1522 return -1;
1523
1524 count = ghb_array_len(queue);
1525 for (ii = 0; ii < count; ii++)
1526 {
1527 queueDict = ghb_array_get(queue, ii);
1528 uiDict = ghb_dict_get(queueDict, "uiSettings");
1529 job_unique_id = ghb_dict_get_int(uiDict, "job_unique_id");
1530 if (job_unique_id == unique_id)
1531 {
1532 if (job != NULL)
1533 {
1534 *job = queueDict;
1535 }
1536 return ii;
1537 }
1538 }
1539 return -1;
1540}
1541
1542static void
1543low_disk_check_response_cb (GtkDialog *dialog, int response,

Callers 5

submit_jobFunction · 0.85
working_status_stringFunction · 0.85
searching_status_stringFunction · 0.85
ghb_backend_eventsFunction · 0.85
ghb_low_disk_checkFunction · 0.85

Calls 1

ghb_dict_get_intFunction · 0.85

Tested by

no test coverage detected