Remove/fix calls to std::abort() (#648)

This commit is contained in:
Cameron Gutman
2022-12-29 10:09:11 -06:00
committed by GitHub
parent 8ad7af86c0
commit d6db10afb4
9 changed files with 90 additions and 68 deletions

View File

@@ -11,6 +11,7 @@
#include <mutex>
#include <string>
#include "src/main.h"
#include "src/thread_safe.h"
#include "src/utility.h"
@@ -197,7 +198,7 @@ struct hwdevice_t {
* implementations must take ownership of 'frame'
*/
virtual int set_frame(AVFrame *frame) {
std::abort(); // ^ This function must never be called
BOOST_LOG(error) << "Illegal call to hwdevice_t::set_frame(). Did you forget to override it?";
return -1;
};