From e939a07b13fd0e9f833c1fa46824ff9b328c7f51 Mon Sep 17 00:00:00 2001 From: John Stebbins Date: Wed, 26 Oct 2016 14:55:52 -0700 Subject: [PATCH] libhb: set HB_ERROR_CANCELED status for canceled encodes This status can be queried with hb_get_state() after an encode finishes. --- libhb/hb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libhb/hb.c b/libhb/hb.c index 76325555d..f004a502b 100644 --- a/libhb/hb.c +++ b/libhb/hb.c @@ -1699,7 +1699,8 @@ void hb_resume( hb_handle_t * h ) */ void hb_stop( hb_handle_t * h ) { - h->work_die = 1; + h->work_error = HB_ERROR_CANCELED; + h->work_die = 1; hb_resume( h ); } -- 2.40.0