]> granicus.if.org Git - handbrake/commitdiff
libhb: Temporarily log out the error code for unlink to figure out why previews are...
authorsr55 <sr55.hb@outlook.com>
Mon, 28 Jan 2019 20:24:17 +0000 (20:24 +0000)
committersr55 <sr55.hb@outlook.com>
Mon, 28 Jan 2019 20:24:58 +0000 (20:24 +0000)
libhb/hb.c

index 3be050a9a727ccbb6827d1e32e0f090c5329d167..c8c4b1c5af21827a0b39a36f629a6dbea05240d4 100644 (file)
@@ -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;
             }