[vdr] create a channel by SetId(int Nid, int Tid, int Sid, int Rid = 0)

Patrick Fischer patrick_fischer at gmx.de
Tue Nov 15 10:09:10 CET 2005


//damn copy&past.... new version


Hello
Today I'm wondering about the SetId from cChannels.h
As I know, I can specify a channel only by NID, TID and SID

I know vdr don't use the way, but is there an way to switch to a channel 
only by this values?

I have tried this code:
   cChannel* channel = new cChannel();
   channel->SetId(8468,12801,16406);      
cDevice::ActualDevice()->SwitchChannel(channel,true);

If I execute this code, vdr will show me only the last still Pic of the 
old channel.

The values are from my channels.conf created with w_scan

Name Frequenz Parameter Quelle SRate VPID APID TPID CA SID NID TID RID
RTL2:578000:I0C23D12M16B8T8G4Y0:T:27500:353:354:359:0:16406:8468:12801:0

If I don't find a better way, I will parse my channels.conf for the 
SID,NID and TID
If I found the right line, then I can create a cChannel with 
cChannel-Parse(the found line);

I don't like the alternative way.
Can anybody tell me a better way?

greetings
Patrick



More information about the vdr mailing list