]> git.sesse.net Git - nageru/blobdiff - futatabi/player.cpp
On errors, abort() instead of exit(1); exit() in a multithreaded program just gives...
[nageru] / futatabi / player.cpp
index 687afd013f13033ddcfa3f1af161fa8bbf361286..611f0abce4151ceff3a9adc8e51da2dc14e987b3 100644 (file)
@@ -35,7 +35,7 @@ void Player::thread_func(AVFormatContext *file_avctx)
        QOpenGLContext *context = create_context(surface);
        if (!make_current(context, surface)) {
                printf("oops\n");
-               exit(1);
+               abort();
        }
 
        check_error();