lcd4l.cpp: exit ParseInfo() on missing instance of videoDecoder

Origin commit data
------------------
Branch: ni/coolstream
Commit: 731853f1ab
Author: Thilo Graf <dbt@novatux.de>
Date: 2021-10-01 (Fri, 01 Oct 2021)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
2021-10-01 23:08:53 +02:00
committed by vanhofen
parent 7ec6424e5c
commit da241ca4be

View File

@@ -466,7 +466,15 @@ void CLCD4l::ParseInfo(uint64_t parseID, bool newID, bool firstRun)
/* ----------------------------------------------------------------- */
int x_res, y_res, framerate;
videoDecoder->getPictureInfo(x_res, y_res, framerate);
if (videoDecoder)
{ // Hack: That should not happen, but while shutting down there
// could be a null pointer and this can lead to a crash.
// This behavior was observed with LeakSanitizer on pc hardware.
videoDecoder->getPictureInfo(x_res, y_res, framerate);
}
else
return;
if (y_res == 1088)
y_res = 1080;