- zapitclient: change CZapitClient::stopPip()

* Original commit: 51a084e92b
This commit is contained in:
BPanther
2021-10-19 22:35:24 +02:00
committed by Thilo Graf
parent 3b0aaf8944
commit 3cc4b7c53e

View File

@@ -1138,8 +1138,10 @@ void CZapitClient::stopPlayBack(const bool sendpmt)
void CZapitClient::stopPip(int pip) void CZapitClient::stopPip(int pip)
{ {
CZapitMessages::commandZaptoServiceID msg;
OpenThreads::ScopedLock<OpenThreads::Mutex> lock(mutex); OpenThreads::ScopedLock<OpenThreads::Mutex> lock(mutex);
send(CZapitMessages::CMD_STOP_PIP); msg.pip_dev = pip;
send(CZapitMessages::CMD_STOP_PIP, (char*)&msg, sizeof(msg));
CZapitMessages::responseCmd response; CZapitMessages::responseCmd response;
CBasicClient::receive_data((char* )&response, sizeof(response)); CBasicClient::receive_data((char* )&response, sizeof(response));
close_connection(); close_connection();