{
struct stat s;
char filename[128];
+#if HAVE_DVB_API_VERSION < 3
+ sprintf(filename, "/dev/dvb/card%d/frontend%d", m_nr, num_fe);
+#else
sprintf(filename, "/dev/dvb/adapter%d/frontend%d", m_nr, num_fe);
+#endif
if (stat(filename, &s))
break;
ePtr<eDVBFrontend> fe;
{
struct stat s;
char filename[128];
+#if HAVE_DVB_API_VERSION < 3
+ sprintf(filename, "/dev/dvb/card%d/demux%d", m_nr, num_demux);
+#else
sprintf(filename, "/dev/dvb/adapter%d/demux%d", m_nr, num_demux);
+#endif
if (stat(filename, &s))
break;
ePtr<eDVBDemux> demux;
{
struct stat s;
char filename[128];
+#if HAVE_DVB_API_VERSION < 3
+ sprintf(filename, "/dev/dvb/card%d", nr);
+#else
sprintf(filename, "/dev/dvb/adapter%d", nr);
+#endif
if (!stat(filename, &s))
return 1;
return 0;
{
/* first, check if a channel is already existing. */
- for (std::list<active_channel>::iterator i(m_active_channels.begin()); i != m_active_channels.end();)
+// eDebug("allocate channel.. %04x:%04x", channelid.transport_stream_id.get(), channelid.original_network_id.get());
+ for (std::list<active_channel>::iterator i(m_active_channels.begin()); i != m_active_channels.end(); ++i)
{
+// eDebug("available channel.. %04x:%04x", i->m_channel_id.transport_stream_id.get(), i->m_channel_id.original_network_id.get());
if (i->m_channel_id == channelid)
{
+// eDebug("found shared channel..");
channel = i->m_channel;
return 0;
}