mirror of
https://github.com/pikvm/ustreamer.git
synced 2026-02-26 19:56:33 +00:00
fixed segfault on uninitialized mmal
This commit is contained in:
@@ -250,7 +250,9 @@ static void _h264_encoder_cleanup(h264_encoder_s *enc) {
|
||||
|
||||
# undef DISABLE_PORT
|
||||
|
||||
enc->wrapper->status = MMAL_SUCCESS; // Это реально надо?
|
||||
if (enc->wrapper) {
|
||||
enc->wrapper->status = MMAL_SUCCESS; // Это реально надо?
|
||||
}
|
||||
|
||||
enc->last_online = -1;
|
||||
enc->ready = false;
|
||||
|
||||
Reference in New Issue
Block a user