Revert "Remove unknown as a state, as string lookup has to start at 0 and this breaks api."
This reverts commit e0a90319e7
.
pull/3805/head
parent
36bdc3f8a9
commit
fe9abb96a1
|
@ -114,6 +114,7 @@ std::string CameraType_Strings[] = {
|
|||
};
|
||||
|
||||
std::string State_Strings[] = {
|
||||
"Unknown",
|
||||
"IDLE",
|
||||
"PREALARM",
|
||||
"ALARM",
|
||||
|
@ -3428,7 +3429,6 @@ int Monitor::Play() {
|
|||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
int Monitor::Close() {
|
||||
Pause();
|
||||
|
||||
|
@ -3448,7 +3448,8 @@ int Monitor::Close() {
|
|||
_wsnt__Unsubscribe wsnt__Unsubscribe;
|
||||
_wsnt__UnsubscribeResponse wsnt__UnsubscribeResponse;
|
||||
const char *RequestMessageID = soap_wsa_rand_uuid(soap);
|
||||
if (soap_wsa_request(soap, RequestMessageID, response.SubscriptionReference.Address, "UnsubscribeRequest") == SOAP_OK) {
|
||||
if (soap_wsa_request(soap, RequestMessageID, response.SubscriptionReference.Address, "UnsubscribeRequest") == SOAP_OK)
|
||||
{
|
||||
proxyEvent.Unsubscribe(response.SubscriptionReference.Address, NULL, &wsnt__Unsubscribe, wsnt__UnsubscribeResponse);
|
||||
} else {
|
||||
Error("Couldn't set wsa headers RequestMessageID=%s; TO= %s; Request=UnsubscribeRequest .... ! Error %i %s, %s",
|
||||
|
|
|
@ -154,6 +154,7 @@ public:
|
|||
} Deinterlace;
|
||||
|
||||
typedef enum {
|
||||
UNKNOWN = -1,
|
||||
IDLE,
|
||||
PREALARM,
|
||||
ALARM,
|
||||
|
|
Loading…
Reference in New Issue