Swap deprecated FFmpeg call.
[dcpomatic.git] / src / lib / util.cc
index 074e08cb70e819617391f5c4a6115e830d6444cc..55df5cc83798ba126eeebc82a0e9ca0d7f71aa34 100644 (file)
@@ -267,7 +267,8 @@ terminate ()
 
        try {
                // try once to re-throw currently active exception
-               if (!tried_throw++) {
+               if (!tried_throw) {
+                       tried_throw = true;
                        throw;
                }
        }