Add PrimeCapture to zm_remote_camera_http. PrimeCapture is used to determine if we can connect and so by not implementing it, monitors like this say capturing even though they are not.
This commit is contained in:
parent
ec7f6034fa
commit
bf2cb5fb1f
|
@ -1069,6 +1069,18 @@ int RemoteCameraHttp::GetResponse() {
|
|||
return( 0 );
|
||||
}
|
||||
|
||||
int RemoteCameraHttp::PrimeCapture() {
|
||||
if ( sd < 0 ) {
|
||||
Connect();
|
||||
if ( sd < 0 ) {
|
||||
return -1;
|
||||
}
|
||||
mode = SINGLE_IMAGE;
|
||||
buffer.clear();
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
int RemoteCameraHttp::PreCapture() {
|
||||
if ( sd < 0 ) {
|
||||
Connect();
|
||||
|
|
|
@ -55,6 +55,7 @@ public:
|
|||
int ReadData( Buffer &buffer, unsigned int bytes_expected=0 );
|
||||
int GetData();
|
||||
int GetResponse();
|
||||
int PrimeCapture();
|
||||
int PreCapture();
|
||||
int Capture( Image &image );
|
||||
int PostCapture();
|
||||
|
|
Loading…
Reference in New Issue