data.source=channel->Source(); data.onid=channel->Nid(); data.tid=channel->Tid();
if (channel) { data.source=channel->Source(); data.onid=channel->Nid(); data.tid=channel->Tid(); } else { data.source=0; data.onid=0; data.tid=0; }
namespace Service {TransportStream::TransportStream(const cChannel *channel) {   data.source=channel->Source();   data.onid=channel->Nid();   data.tid=channel->Tid();}ServiceIDAdapter::ServiceIDAdapter(const cChannel *channel)   : TransportStream(channel){   sid=channel->Sid();}