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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



//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


[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux