mirror of
https://github.com/pikvm/ustreamer.git
synced 2026-03-01 21:26:33 +00:00
drop stream on error
This commit is contained in:
@@ -250,7 +250,10 @@ void stream_loop(struct stream_t *stream) {
|
||||
A_PTHREAD_M_LOCK(&stream->mutex);
|
||||
stream->picture.size = 0;
|
||||
free(stream->picture.data);
|
||||
stream->width = 0;
|
||||
stream->height = 0;
|
||||
stream->online = false;
|
||||
stream->updated = true;
|
||||
A_PTHREAD_M_UNLOCK(&stream->mutex);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user