Random cleanup (#861)

Co-authored-by: Seker <murat.seker@barco.com>
This commit is contained in:
Murat Seker
2020-07-12 09:19:59 +02:00
committed by GitHub
parent de9ece5139
commit 138b7d9c94
74 changed files with 115 additions and 234 deletions

View File

@@ -95,7 +95,7 @@ bool V4L2Grabber::init()
QString v4lDevices_str;
// show list only once
if (!QString(QSTRING_CSTR(_deviceName)).startsWith("/dev/"))
if (!_deviceName.startsWith("/dev/"))
{
for (auto& dev: _v4lDevices)
{
@@ -369,11 +369,8 @@ void V4L2Grabber::close_device()
_fileDescriptor = -1;
if (_streamNotifier != nullptr)
{
delete _streamNotifier;
_streamNotifier = nullptr;
}
delete _streamNotifier;
_streamNotifier = nullptr;
}
void V4L2Grabber::init_read(unsigned int buffer_size)