mirror of
https://github.com/pikvm/ustreamer.git
synced 2026-05-28 16:26:12 +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
|
# undef DISABLE_PORT
|
||||||
|
|
||||||
enc->wrapper->status = MMAL_SUCCESS; // Это реально надо?
|
if (enc->wrapper) {
|
||||||
|
enc->wrapper->status = MMAL_SUCCESS; // Это реально надо?
|
||||||
|
}
|
||||||
|
|
||||||
enc->last_online = -1;
|
enc->last_online = -1;
|
||||||
enc->ready = false;
|
enc->ready = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user