]> git.sesse.net Git - nageru/blobdiff - futatabi/video_stream.cpp
On errors, abort() instead of exit(1); exit() in a multithreaded program just gives...
[nageru] / futatabi / video_stream.cpp
index 290168ea834a63f9dfc304c551433dfabe65ad5d..4b0336ce3b8384a68673e7a5cf6fd7a0f603e9b2 100644 (file)
@@ -600,7 +600,7 @@ void VideoStream::encode_thread_func()
        bool ok = make_current(context, surface);
        if (!ok) {
                fprintf(stderr, "Video stream couldn't get an OpenGL context\n");
-               exit(1);
+               abort();
        }
 
        while (!should_quit) {