1
0
mirror of https://github.com/rofafor/vdr-plugin-satip.git synced 2023-10-10 13:37:42 +02:00

merge commit '123fc5f' into datathread

Conflicts:
	tuner.c
	tuner.h
This commit is contained in:
nafets227 2014-11-09 18:06:16 +01:00
commit c5966add39
2 changed files with 24 additions and 23 deletions

45
tuner.c
View File

@ -141,30 +141,31 @@ void cSatipTuner::DataTimeoutCallback(void *objP)
obj->reconnectM = true; obj->reconnectM = true;
} }
int cSatipTuner::RtspDebugCallback(CURL *handleP, curl_infotype typeP, char *dataP, size_t sizeP, void *userPtrP) int cSatipTuner::DebugCallback(CURL *handleP, curl_infotype typeP, char *dataP, size_t sizeP, void *userPtrP)
{ {
//cSatipTuner *obj = reinterpret_cast<cSatipTuner *>(userPtrP); cSatipTuner *obj = reinterpret_cast<cSatipTuner *>(userPtrP);
//debug("cSatipTuner::%s(%d) [device %d]", __FUNCTION__, (int)typeP, obj->deviceM->GetId());
switch (typeP) { if (obj) {
case CURLINFO_TEXT: switch (typeP) {
debug("RTSP INFO %.*s", (int)sizeP, dataP); case CURLINFO_TEXT:
break; debug("cSatipTuner::%s(%d): RTSP INFO %.*s", __FUNCTION__, obj->deviceM->GetId(), (int)sizeP, dataP);
case CURLINFO_HEADER_IN: break;
debug("RTSP HEAD< %.*s", (int)sizeP, dataP); case CURLINFO_HEADER_IN:
break; debug("cSatipTuner::%s(%d): RTSP HEAD <<< %.*s", __FUNCTION__, obj->deviceM->GetId(), (int)sizeP, dataP);
case CURLINFO_HEADER_OUT: break;
debug("RTSP HEAD> %.*s", (int)sizeP, dataP); case CURLINFO_HEADER_OUT:
break; debug("cSatipTuner::%s(%d): RTSP HEAD >>> %.*s", __FUNCTION__, obj->deviceM->GetId(), (int)sizeP, dataP);
case CURLINFO_DATA_IN: break;
debug("RTSP DATA< %.*s", (int)sizeP, dataP); case CURLINFO_DATA_IN:
break; debug("cSatipTuner::%s(%d): RTSP DATA <<< %.*s", __FUNCTION__, obj->deviceM->GetId(), (int)sizeP, dataP);
case CURLINFO_DATA_OUT: break;
debug("RTSP DATA> %.*s", (int)sizeP, dataP); case CURLINFO_DATA_OUT:
break; debug("cSatipTuner::%s(%d): RTSP DATA >>> %.*s", __FUNCTION__, obj->deviceM->GetId(), (int)sizeP, dataP);
default: break;
break; default:
} break;
}
}
return 0; return 0;
} }

View File

@ -33,7 +33,7 @@ private:
static size_t HeaderCallback(void *ptrP, size_t sizeP, size_t nmembP, void *dataP); static size_t HeaderCallback(void *ptrP, size_t sizeP, size_t nmembP, void *dataP);
static size_t DataCallback(void *ptrP, size_t sizeP, size_t nmembP, void *dataP); static size_t DataCallback(void *ptrP, size_t sizeP, size_t nmembP, void *dataP);
static void DataTimeoutCallback(void *objP); static void DataTimeoutCallback(void *objP);
static int RtspDebugCallback(CURL *handleP, curl_infotype typeP, char *dataP, size_t sizeP, void *userPtrP); static int DebugCallback(CURL *handleP, curl_infotype typeP, char *dataP, size_t sizeP, void *userPtrP);
cSatipTunerDataThread dataThreadM; cSatipTunerDataThread dataThreadM;
cCondWait sleepM; cCondWait sleepM;