else
{
foundpid = foundpid & 0x1FFF; //clear upper 3 bits
- int pos=0;
+ //int pos=0; UNUSED?
if (streamtype==3 || streamtype ==4) {
scanaid=foundpid;
}
p += eslength; //skip es descriptor
}
} else if (pid == scanaid) {
- UINT framelength = ((UINT)curbuf[4] << 8) | curbuf[5];
+ // UINT framelength = ((UINT)curbuf[4] << 8) | curbuf[5]; UNUSED?
if ( curbuf[7] & 0x80 ) // PTS_DTS_flags indicate that PTS is present
{
new_channelinfo.name=NULL;
new_channelinfo.tpid=0xFFFFF; //unused, check this
new_channelinfo.vpid=0xFFFFF; //unused, check this
- new_channelinfo.index=NULL;
+ new_channelinfo.index=0;
new_channelinfo.apids.clear();
new_channelinfo.dpids.clear();
}
bool audioPIDpresent=false; //Check if pids chnages
- int i;
+ ULONG i;
for (i=0;i<channelinfo.numAPids;i++) {
- if (aID ==channelinfo.apids[i].pid) {
+ if (aID == (int)channelinfo.apids[i].pid) {
audioPIDpresent=true;
}
}
for (i=0;i<channelinfo.numDPids && (! audioPIDpresent);i++) {
- if (aID ==channelinfo.dpids[i].pid) {
+ if (aID == (int)channelinfo.dpids[i].pid) {
audioPIDpresent=true;
}
}
else
{
foundpid = foundpid & 0x1FFF; //clear upper 3 bits
- int pos=0;
+ // int pos=0; UNUSED?
if (streamtype==1 || streamtype ==2) {
return true;
}
if (initted) shutdown();
}
-int Player::init(bool isPesRecording)
+int Player::init(bool p_isPesRecording)
{
if (initted) return 0;
#ifndef WIN32
#else
mutex=CreateMutex(NULL,FALSE,NULL);
#endif
- is_pesrecording=isPesRecording;
- if (isPesRecording)
+ is_pesrecording = p_isPesRecording;
+ if (is_pesrecording)
demuxer = new DemuxerVDR();
else
demuxer = new DemuxerTS();
Player(MessageQueue* messageQueue, void* messageReceiver, OSDReceiver* osdReceiver);
virtual ~Player();
- int init(bool IsPesRecording);
+ int init(bool p_isPesRecording);
int shutdown();
void setStartFrame(ULONG frameNum);
void setLengthBytes(ULLONG length);
void setSubtitleChannel(int newChannel);
bool toggleSubtitles();
void turnSubtitlesOn(bool ison);
- bool isSubtitlesOn() {return subtitlesShowing;};
+ bool isSubtitlesOn() { return subtitlesShowing; }
void play();
void stop();
int *getTeletxtSubtitlePages();
int getCurrentAudioChannel();
int getCurrentSubtitleChannel();
- bool isPesRecording() {return is_pesrecording;};
+ bool isPesRecording() { return is_pesrecording; }
Channel getDemuxerChannel();
- TeletextDecoderVBIEBU * getTeletextDecoder(){return teletext;};
+ TeletextDecoderVBIEBU * getTeletextDecoder() { return teletext; }
void call(void*); // for callback interface
RecInfo *cur_info= myRec->recInfo;
unsigned char numchan_recinfo = cur_info->numComponents;
unsigned char numchan_subtitles_siz = temp_channel.numSPids;
- int mp_audcounter = 0;
- int ac3_counter = 0;
+ ULONG mp_audcounter = 0;
+ ULONG ac3_counter = 0;
int dvb_subcounter = 1;
unsigned char type;
int i;
for (i = 0; i < numchan_recinfo; i++)
{
- apid *ac=NULL;
+ apid* ac = NULL;
type = cur_info->types[i];
lang = cur_info->languages[i];
description = cur_info->descriptions[i];