From 98051d6b7c086d814e64bfecb58c74290eb8ba61 Mon Sep 17 00:00:00 2001 From: Steffen Pohle Date: Tue, 29 Nov 2022 22:26:01 +0100 Subject: [PATCH] crash on invalid or not givin dumppath solved. --- ChangeLog | 1 + videodev-dumpfile.cc | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index 256a3bc..3f36306 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,5 @@ 2022-11-29: +- Crash on invalid dumpfile solved. - closing and reopening of windows is working now. - RGB16 debayer mode simple/bilinear can now be choosen in the settings menu diff --git a/videodev-dumpfile.cc b/videodev-dumpfile.cc index a3e6ec3..fa4ac55 100644 --- a/videodev-dumpfile.cc +++ b/videodev-dumpfile.cc @@ -82,7 +82,11 @@ int VideoDev_Dumpfile::GetDeviceList(std::list *list) { * prepare the buffer, InitMMAP and read all controls */ int VideoDev_Dumpfile::Open() { + if (config.readdumppath == NULL) return VDEV_STATUS_ERROR; + std::string fname = config.readdumppath; + + fname = fname + "/" + conf_device; uint32_t inbuf[3];