/*
- Copyright 2004-2020 Chris Tallon
+ Copyright 2004-2022 Chris Tallon
This file is part of VOMP.
typedef unsigned long ULONG;
typedef unsigned long long ULLONG;
+#include <stdint.h>
+
+typedef int8_t i1;
+typedef int16_t i2;
+typedef int32_t i4;
+typedef int64_t i8;
+typedef uint8_t u1;
+typedef uint16_t u2;
+typedef uint32_t u4;
+typedef uint64_t u8;
+
+#define toi4(arg) static_cast<i4>(arg)
+#define tou4(arg) static_cast<u4>(arg)
+
+
+
#define OPTIONTYPE_TEXT 1
#define OPTIONTYPE_INT 2
long long getTimeMS();
-#include <string>
-
-
int getClockRealTime(struct timespec *tp);
-const std::string& getCommandLineServer();
-
//#define WINDOWS_LEGACY
#ifdef WIN32
//demux_audio_size*=2;
}
- int text_fak = video->getTeletextBufferFaktor();
+ u4 text_fak = tou4(video->getTeletextBufferFaktor());
if (!demuxer->init(this, audio, video, teletext, demux_video_size, demux_audio_size, 65536 * text_fak, 25./*unimportant*/, subtitles))
{
StreamChunk s = streamChunks.front();
streamChunks.pop();
// logger->log("PlayerVideoLive", Log::DEBUG, "About to call demuxer with %p %lu", s.data, s.len);
- /* int a =*/ demuxer->put(static_cast<UCHAR*>(s.data), s.len);
+ /* int a =*/ demuxer->put(static_cast<UCHAR*>(s.data), toi4(s.len));
// logger->log("PlayerVideoLive", Log::DEBUG, "put %i to demuxer", a);
- free(s.data);
+ free(s.data);
if (pendingAudioPlay && (demuxer->getHorizontalSize() || !video->independentAVStartUp())) //Horizontal Size is zero, if not parsed
{
video->sync();
h264 = (chan->vstreamtype == 0x1b);
demuxer->seth264(h264);
video->seth264mode(h264);
- demuxer->setVID(chan->vpid);
+ demuxer->setVID(toi4(chan->vpid));
video->seth264mode(h264);
bool dolby = false;
while (j < chan->numDPids)
{
int newpref = control->getLangPref(false, chan->dpids[j].desc);
- if (Audio::getInstance()->streamTypeSupported(chan->dpids[j].type) && (prefered < 0 || newpref < prefered))
+ if (Audio::getInstance()->streamTypeSupported(toi4(chan->dpids[j].type)) && (prefered < 0 || newpref < prefered))
{
selected = j;
dolby=true;
Log* logger;
InputWin* inputWin;
Control* control;
-std::string commandLineServer; // NCONFIG
bool wnd_fullscreen=false;
bool wnd_topmost=false;
// -------------------------------------------------------------------------------------------------------------------
-const std::string& getCommandLineServer()
-{
- return commandLineServer;
-}
-
#endif