mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 15:32:59 +02:00
lcd4l.cpp: exit ParseInfo() on missing instance of videoDecoder
This commit is contained in:
@@ -469,7 +469,15 @@ void CLCD4l::ParseInfo(uint64_t parseID, bool newID, bool firstRun)
|
|||||||
/* ----------------------------------------------------------------- */
|
/* ----------------------------------------------------------------- */
|
||||||
|
|
||||||
int x_res, y_res, framerate;
|
int 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);
|
videoDecoder->getPictureInfo(x_res, y_res, framerate);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
return;
|
||||||
|
|
||||||
|
|
||||||
if (y_res == 1088)
|
if (y_res == 1088)
|
||||||
y_res = 1080;
|
y_res = 1080;
|
||||||
|
Reference in New Issue
Block a user