From: sr55 Date: Mon, 28 Jan 2019 20:24:17 +0000 (+0000) Subject: libhb: Temporarily log out the error code for unlink to figure out why previews are... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8bada3b2174e641ed8f39794c24755e35f780fc7;p=handbrake libhb: Temporarily log out the error code for unlink to figure out why previews are not being removed for a user. #1851 --- diff --git a/libhb/hb.c b/libhb/hb.c index 3be050a9a..c8c4b1c5a 100644 --- a/libhb/hb.c +++ b/libhb/hb.c @@ -331,7 +331,10 @@ void hb_remove_previews( hb_handle_t * h ) { free(filename); filename = hb_strdup_printf("%s/%s", dirname, entry->d_name); - unlink( filename ); + int ulerr = unlink( filename ); + if (ulerr < 0) { + hb_log("Unable to remove preview: %i - %s", ulerr, filename); + } free(filename); break; }