summaryrefslogtreecommitdiffstats
path: root/libhb/encvorbis.c
diff options
context:
space:
mode:
authormaxd <[email protected]>2013-11-05 13:46:42 +0000
committermaxd <[email protected]>2013-11-05 13:46:42 +0000
commite7fa5d24cdd7275611ed738e3dfc909fe30ad317 (patch)
treef0478754e3d930d44782e313c3fa21cb465f6b22 /libhb/encvorbis.c
parenta89397c1e3358b5f690b046481388ade19316fda (diff)
RB626: return code support added
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5876 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/encvorbis.c')
-rw-r--r--libhb/encvorbis.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libhb/encvorbis.c b/libhb/encvorbis.c
index c81b44d76..4d062c2c6 100644
--- a/libhb/encvorbis.c
+++ b/libhb/encvorbis.c
@@ -77,6 +77,7 @@ int encvorbisInit(hb_work_object_t *w, hb_job_t *job)
audio->config.out.bitrate * 1000, -1))
{
hb_error("encvorbis: vorbis_encode_setup_managed() failed");
+ *job->done_error = HB_ERROR_INIT;
*job->die = 1;
return -1;
}
@@ -89,6 +90,7 @@ int encvorbisInit(hb_work_object_t *w, hb_job_t *job)
audio->config.out.quality / 10))
{
hb_error("encvorbis: vorbis_encode_setup_vbr() failed");
+ *job->done_error = HB_ERROR_INIT;
*job->die = 1;
return -1;
}
@@ -98,6 +100,7 @@ int encvorbisInit(hb_work_object_t *w, hb_job_t *job)
vorbis_encode_setup_init(&pv->vi))
{
hb_error("encvorbis: vorbis_encode_ctl(ratemanage2_set) OR vorbis_encode_setup_init() failed");
+ *job->done_error = HB_ERROR_INIT;
*job->die = 1;
return -1;
}