From: John Stebbins Date: Wed, 26 Oct 2016 21:55:52 +0000 (-0700) Subject: libhb: set HB_ERROR_CANCELED status for canceled encodes X-Git-Tag: 1.0.0~167 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e939a07b13fd0e9f833c1fa46824ff9b328c7f51;p=handbrake libhb: set HB_ERROR_CANCELED status for canceled encodes This status can be queried with hb_get_state() after an encode finishes. --- 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 ); }