object.decodeSubBlock(segmentData + 7, topFieldLen, false);
}
else if (codingMethod == 0x01) // Coded as a string of characters
+ {
; // TODO
+ }
break;
}
case 0x14: {// Display definition
waitExpireWL = false;
worklistTimeoutPointActive = false;
-
+#ifndef DVBSDEBUG
ULLONG nowPTS = Video::getInstance()->getCurrentTimestamp();
-
+#endif
// Guaranteed to be at least one packet in the worklist
PESPacket packet = worklist.front();
ULLONG pktPTS = worklist.front().getPTS();
#include "option.h"
#include "vdr.h"
-Option::Option(UINT ID, const char* DISPLAYTEXT, const char* CONFIGSECTION, const char* CONFIGKEY, UINT OPTIONTYPE,
+Option::Option(UINT ID, const char* DISPLAYTEXT, const char* CONFIGSECTION, const char* CONFIGKEY, UCHAR OPTIONTYPE,
UINT NUMCHOICES, UINT DEFAULTCHOICE, UINT STARTINT,
const char * const * OPTIONS, const char * const * OPTIONKEYS, bool DELETESTRINGS, AbstractOption* handler)
: id(ID), displayText(DISPLAYTEXT), configSection(CONFIGSECTION), configKey(CONFIGKEY), optionType(OPTIONTYPE),
class Option
{
public:
- Option(UINT id, const char* displayText, const char* configSection, const char* configKey, UINT optionType,
+ Option(UINT id, const char* displayText, const char* configSection, const char* configKey, UCHAR optionType,
UINT numChoices, UINT defaultChoice, UINT startInt,
const char * const * options, const char * const * optionkeys = NULL, bool deletestrings = false, AbstractOption* handler = NULL);
~Option();
StreamChunk s = streamChunks.front();
streamChunks.pop();
//logger->log("PlayerRadioLive", Log::DEBUG, "About to call demuxer with %p %lu", s.data, s.len);
- /*int a =*/ demuxer->put((UCHAR*)s.data, s.len);
+ /*int a =*/ demuxer->put(static_cast<UCHAR*>(s.data), s.len);
//logger->log("PlayerRadioLive", Log::DEBUG, "put %i to demuxer", a);
free(s.data);
}
if (state == S_PREBUFFERING)
{
++preBufferCount;
- ULONG percentDone = (ULONG)(preBufferCount / (float)preBufferAmount * 100);
+ ULONG percentDone = (preBufferCount * 100) / preBufferAmount;
+
logger->log("PlayerRadioLive", Log::DEBUG, "Prebuffering %lu%%", percentDone);
Message* m = new Message();
std::string firstAired;
std::string guestStars;
std::string overview;
- float rating ;
+ double rating;
TVMedia image;
userDataLength = 0; // so the below will write a zero
}
- buffer = (UCHAR*)malloc(bufSize);
+ buffer = static_cast<UCHAR*>(malloc(bufSize));
if (!buffer) return false;
channel = VDR::CHANNEL_REQUEST_RESPONSE;