summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2015-06-09 15:17:30 +0000
committerjstebbins <[email protected]>2015-06-09 15:17:30 +0000
commit4b7d693eb1db975db6292eabf7a974b76f6b23e2 (patch)
treee69e6b44c7e5b6d557929c97769add0ae5fcbb78 /test
parent8caee85622a20896dc34943a4bd184151fd58c2d (diff)
CLI: Use json job instead of job
This allows libhb to log the json job for the CLI. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7282 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'test')
-rw-r--r--test/test.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/test/test.c b/test/test.c
index 25cea9458..2748ea8b7 100644
--- a/test/test.c
+++ b/test/test.c
@@ -798,18 +798,19 @@ static int HandleEvents(hb_handle_t * h, hb_dict_t *preset_dict)
return -1;
}
- hb_job_t * job = NULL;
- job = hb_dict_to_job(h, job_dict);
+ char * json_job;
+ json_job = hb_value_get_json(job_dict);
hb_value_free(&job_dict);
- if (job == NULL)
+ if (json_job == NULL)
{
fprintf(stderr, "Error in setting up job! Aborting.\n");
die = 1;
return -1;
}
- hb_add( h, job );
- hb_job_close( &job );
+
+ hb_add_json(h, json_job);
+ free(json_job);
hb_start( h );
break;
}