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

Function RunQueueJob

test/test.c:443–467  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

441}
442
443int RunQueueJob(hb_handle_t *h, hb_dict_t *job_dict)
444{
445 if (job_dict == NULL)
446 {
447 return -1;
448 }
449
450 char * json_job;
451 json_job = hb_value_get_json(job_dict);
452 hb_value_free(&job_dict);
453 if (json_job == NULL)
454 {
455 fprintf(stderr, "Error in setting up job! Aborting.\n");
456 return -1;
457 }
458
459 hb_add_json(h, json_job);
460 free(json_job);
461 job_running = 1;
462 hb_start( h );
463
464 EventLoop(h, NULL);
465
466 return 0;
467}
468
469int RunQueue(hb_handle_t *h, const char *queue_import_name)
470{

Callers 1

RunQueueFunction · 0.85

Calls 5

hb_value_get_jsonFunction · 0.85
hb_value_freeFunction · 0.85
hb_add_jsonFunction · 0.85
hb_startFunction · 0.85
EventLoopFunction · 0.85

Tested by

no test coverage detected