Actually close the camera in localcamera::Close
This commit is contained in:
parent
855a81b975
commit
09b0353592
|
@ -705,6 +705,12 @@ LocalCamera::~LocalCamera() {
|
|||
|
||||
} // end LocalCamera::~LocalCamera
|
||||
|
||||
int LocalCamera::Close() {
|
||||
if (device_prime && capture)
|
||||
Terminate();
|
||||
return 0;
|
||||
};
|
||||
|
||||
void LocalCamera::Initialise() {
|
||||
Debug(3, "Opening video device %s", device.c_str());
|
||||
//if ( (vid_fd = open( device.c_str(), O_RDWR|O_NONBLOCK, 0 )) < 0 )
|
||||
|
|
|
@ -153,8 +153,7 @@ public:
|
|||
int PreCapture() override;
|
||||
int Capture(std::shared_ptr<ZMPacket> &p) override;
|
||||
int PostCapture() override;
|
||||
int Close() override { return 0; };
|
||||
|
||||
int Close() override;
|
||||
static bool GetCurrentSettings(const char *device, char *output, int version, bool verbose);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue