diff options
author | Lars Hanisch <dvb@flensrocker.de> | 2010-03-20 11:57:52 +0100 |
---|---|---|
committer | Lars Hanisch <dvb@flensrocker.de> | 2010-03-20 11:57:52 +0100 |
commit | 7fb2e42c261e459f18ac737c94b220f4b69f567a (patch) | |
tree | 89a12ada53499ad869545513e0dc9a1755de9524 /reader.c | |
parent | 6bb8f39bb544d93150dd353a1baaa62754500442 (diff) | |
download | vdr-plugin-pvrinput-7fb2e42c261e459f18ac737c94b220f4b69f567a.tar.gz vdr-plugin-pvrinput-7fb2e42c261e459f18ac737c94b220f4b69f567a.tar.bz2 |
Refactoring usage of frequency and encoderinput fields
Renamed "EncoderInput" to "InputType" since it's only set to
eTelevision, eRadio or eExternalInput. It's used for general
decisions depending on the type of the input.
On the contrary "CurrentInput" is holding the actual input number
of the device.
Naming convention:
Properties of current set channel should start with "Current".
Properties of the channel to be set should start with "new".
Diffstat (limited to 'reader.c')
-rw-r--r-- | reader.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -224,7 +224,7 @@ void cPvrReadThread::PesToTs(uint8_t *Data, uint32_t Length) pid = &kAudioPid; counter = &audio_counter; } - else if (parent->EncoderInput == eRadio) + else if (parent->CurrentInputType == eRadio) return; for (i = 0; i < Payload_Count; i++) { ts_buffer[0] = TS_SYNC_BYTE; @@ -472,8 +472,8 @@ void cPvrReadThread::Action(void) // prepare PAT and PMT if (parent->streamType != V4L2_MPEG_STREAM_TYPE_MPEG2_TS) { memcpy(pat_buffer, kPAT, TS_SIZE); - int sid = parent->currentChannel.Sid(); - int tid = parent->currentChannel.Tid(); + int sid = parent->CurrentChannel.Sid(); + int tid = parent->CurrentChannel.Tid(); pat_buffer[8] = (tid >> 8) & 0xFF; pat_buffer[9] = tid & 0xFF; pat_buffer[13] = (sid >> 8) & 0xFF; @@ -484,7 +484,7 @@ void cPvrReadThread::Action(void) pat_buffer[19] = crc >> 8; pat_buffer[20] = crc; - if (parent->EncoderInput == eRadio) { + if (parent->CurrentInputType == eRadio) { memcpy(pmt_buffer, kPMTRadio, TS_SIZE); pmt_buffer[8] = (sid >> 8) & 0xFF; pmt_buffer[9] = sid & 0xFF; |