b1b33e3eaf
Stop scrcpy on recorder errors. It was previously indirectly stopped by the demuxer, which failed to push packets to a recorder in error. Report it directly instead: - it avoids to wait for the next demuxer call; - it will allow to open the target file from a separate thread and stop immediately on any I/O error.
7 lines
429 B
C
7 lines
429 B
C
#define SC_EVENT_NEW_FRAME SDL_USEREVENT
|
|
#define SC_EVENT_DEVICE_DISCONNECTED (SDL_USEREVENT + 1)
|
|
#define SC_EVENT_SERVER_CONNECTION_FAILED (SDL_USEREVENT + 2)
|
|
#define SC_EVENT_SERVER_CONNECTED (SDL_USEREVENT + 3)
|
|
#define SC_EVENT_USB_DEVICE_DISCONNECTED (SDL_USEREVENT + 4)
|
|
#define SC_EVENT_DEMUXER_ERROR (SDL_USEREVENT + 5)
|
|
#define SC_EVENT_RECORDER_ERROR (SDL_USEREVENT + 6)
|