From: Chris Tallon Date: Sun, 14 Aug 2005 16:11:22 +0000 (+0000) Subject: Fix for negatives in getSimpleReply X-Git-Tag: r0-0-9~8 X-Git-Url: https://git.vomp.tv/gitweb/?a=commitdiff_plain;h=9fd9214ffeefc65523ca83137053418d953f4303;p=vompclient.git Fix for negatives in getSimpleReply --- diff --git a/vdr.cc b/vdr.cc index e1c6989..d951f45 100644 --- a/vdr.cc +++ b/vdr.cc @@ -349,6 +349,7 @@ int VDR::deleteRecording(char* fileName) } int toReturn = getSimpleReply(); + if (toReturn == -1) toReturn = 0; // error is same as 0=bad in this case pthread_mutex_unlock(&mutex); return toReturn; } @@ -454,6 +455,7 @@ int VDR::streamChannel(ULONG number) } int toReturn = getSimpleReply(); + if (toReturn == -1) toReturn = 0; // change error to bad pthread_mutex_unlock(&mutex); return toReturn; } @@ -475,6 +477,7 @@ int VDR::stopStreaming() } int toReturn = getSimpleReply(); + if (toReturn == -1) toReturn = 0; // change error to bad pthread_mutex_unlock(&mutex); return toReturn; } @@ -643,6 +646,7 @@ int VDR::configSave(char* section, char* key, char* value) } int toReturn = getSimpleReply(); + if (toReturn == -1) toReturn = 0; // change error to bad pthread_mutex_unlock(&mutex); return toReturn; }