mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-10 07:08:28 +02:00
pzapit: add -lockrc/-unlockrc options; port from martii
I've pulled it from Duckbox-Developers/neutrino-mp-cst-next
and modified it to work
Origin commit data
------------------
Commit: 0330515abc
Author: GetAway <get-away@t-online.de>
Date: 2016-12-11 (Sun, 11 Dec 2016)
This commit is contained in:
@@ -611,6 +611,19 @@ void CZapitClient::getVolume(unsigned int *left, unsigned int *right)
|
||||
|
||||
close_connection();
|
||||
}
|
||||
|
||||
void CZapitClient::lockRc(const bool b)
|
||||
{
|
||||
CZapitMessages::commandBoolean msg;
|
||||
//VALGRIND_PARANOIA;
|
||||
|
||||
msg.truefalse = b;
|
||||
|
||||
OpenThreads::ScopedLock<OpenThreads::Mutex> lock(mutex);
|
||||
send(CZapitMessages::CMD_LOCKRC, (char*)&msg, sizeof(msg));
|
||||
|
||||
close_connection();
|
||||
}
|
||||
#if 0
|
||||
//never used
|
||||
delivery_system_t CZapitClient::getDeliverySystem(void)
|
||||
|
Reference in New Issue
Block a user