fixed segfault on uninitialized mmal

This commit is contained in:
Devaev Maxim
2021-01-15 01:26:05 +03:00
parent b746bc307c
commit 5af18e8b70

View File

@@ -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;