#
# Makefile for a Video Disk Recorder plugin
#
-# $Id$
+# $Id: Makefile,v 1.17 2009/05/30 14:22:59 christallon Exp $
# The official name of this plugin.
# This name will be used in the '-P...' option of VDR to load the plugin.
CXX ?= g++
ifdef DEBUG
-CXXFLAGS ?= -g -fPIC -Wall -Woverloaded-virtual #-Werror
+CXXFLAGS ?= -g -Wall -Woverloaded-virtual -Wno-parentheses #-Werror
else
-CXXFLAGS ?= -O2 -fPIC -Wall -Woverloaded-virtual #-Werror
+CXXFLAGS ?= -O2 -Wall -Woverloaded-virtual -Wno-parentheses #-Werror
endif
### The directory environment:
LIBDIR = ../../lib
TMPDIR = /tmp
+### Make sure that necessary options are included:
+
+include $(VDRDIR)/Make.global
+
### Allow user defined options to overwrite defaults:
-include $(VDRDIR)/Make.config
bool VompClientRRProc::init()
{
- return threadStart();
+ int a = threadStart();
+ sleep(1);
+ return a;
}
bool VompClientRRProc::recvRequest(RequestPacket* newRequest)
Marten
*/
+ log->log("RRProc", Log::DEBUG, "recvReq");
threadLock();
req_queue.push(newRequest);
threadSignalNoLock();
for (cRecording *recording = Recordings.First(); recording; recording = Recordings.Next(recording))
{
+#if VDRVERSNUM < 10721
resp->addULONG(recording->start);
+#else
+ resp->addULONG(recording->Start());
+#endif
resp->addString(recording->Name());
resp->addString(recording->FileName());
}
timerString[d] = '\0';
log->log("RRProc", Log::DEBUG, "Timer string after 1.2 conversion:");
- log->log("RRProc", Log::DEBUG, "%s", timerString);
#endif
+ log->log("RRProc", Log::DEBUG, "%s", timerString);
cTimer *timer = new cTimer;
if (timer->Parse((char*)timerString))
resp->addULONG(0);
resp->finalise();
x.tcp.sendPacket(resp->getPtr(), resp->getLen());
- return 1;
+ return 1; // FIXME - cTimer* timer is leaked here!
}
else
{
{
for (const cMark *m = Marks.First(); m; m = Marks.Next(m))
{
- log->log("RRProc", Log::DEBUG, "found Mark %i", m->position);
+#if VDRVERSNUM < 10721
+ ULLONG mposition = m->position;
+#else
+ ULLONG mposition = m->Position();
+#endif
+ log->log("RRProc", Log::DEBUG, "found Mark %i", mposition);
- resp->addULONG(m->position);
+ resp->addULONG(mposition);
}
}
else