summaryrefslogtreecommitdiffstats
path: root/libhb/hb.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2015-06-29 16:05:38 +0000
committerjstebbins <[email protected]>2015-06-29 16:05:38 +0000
commit10f6690cfa1ebbd5a837e03f70d011b51ea7690a (patch)
tree7cbd3196b1367cade621ae14fe932778bc4d86bd /libhb/hb.c
parentaf9de404779378e28af413d18291975dedd68861 (diff)
libhb: detect read errors and propagate
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7332 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/hb.c')
-rw-r--r--libhb/hb.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libhb/hb.c b/libhb/hb.c
index 513c27e62..a3e373b0f 100644
--- a/libhb/hb.c
+++ b/libhb/hb.c
@@ -1819,6 +1819,11 @@ void hb_set_state( hb_handle_t * h, hb_state_t * s )
hb_unlock( h->pause_lock );
}
+void hb_set_work_error( hb_handle_t * h, hb_error_code err )
+{
+ h->work_error = err;
+}
+
void hb_system_sleep_allow(hb_handle_t *h)
{
hb_system_sleep_private_enable(h->system_sleep_opaque);