From 9fd9214ffeefc65523ca83137053418d953f4303 Mon Sep 17 00:00:00 2001 From: Chris Tallon Date: Sun, 14 Aug 2005 16:11:22 +0000 Subject: [PATCH] Fix for negatives in getSimpleReply --- vdr.cc | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- 2.39.2