]> git.sesse.net Git - nageru/blobdiff - nageru/x264_dynamic.cpp
On errors, abort() instead of exit(1); exit() in a multithreaded program just gives...
[nageru] / nageru / x264_dynamic.cpp
index f8b63cea69769d76480300dee7d50d63e6d4a0d0..3ed1811c6b2091471c5f63915a7cf1c508591314 100644 (file)
@@ -63,7 +63,7 @@ X264Dynamic load_x264_for_bit_depth(unsigned depth)
        if (x264_dir.empty()) {
                fprintf(stderr, "ERROR: Requested %d-bit x264, but is not linked to such an x264, and could not find one.\n",
                        depth);
-               exit(1);
+               abort();
        }
 
        string x264_10b_string = x264_dir + "/x264-10bit" + x264_suffix;
@@ -71,7 +71,7 @@ X264Dynamic load_x264_for_bit_depth(unsigned depth)
        if (x264_dlhandle == nullptr) {
                fprintf(stderr, "ERROR: Requested %d-bit x264, but is not linked to such an x264, and %s would not load.\n",
                        depth, x264_10b_string.c_str());
-               exit(1);
+               abort();
        }
 
        dyn.handle = x264_dlhandle;