Handle SDL_PushEvent() errors
Pushing an event to the main thread may fail. If this happens, log an error, and try to recover when possible.
This commit is contained in:
@@ -44,6 +44,8 @@ struct screen {
|
||||
bool maximized;
|
||||
bool mipmaps;
|
||||
|
||||
bool event_failed; // in case SDL_PushEvent() returned an error
|
||||
|
||||
AVFrame *frame;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user