Skip to content
Snippets Groups Projects
Commit 0b9fdfa0 authored by atx23's avatar atx23
Browse files

wrong paremeter in DVBDemuxHandles::setSectionFiltler iocall

removed debug output from DVBSocketController
parent d8af5321
No related branches found
No related tags found
No related merge requests found
......@@ -32,6 +32,8 @@
#include <sys/ioctl.h>
#include <fcntl.h>
#include "../../../Utils/Exception.hh"
// TODO REMOVE V
#include <iostream>
//#include "DVBDemuxHandles.mpp"
#define prefix_
......@@ -58,20 +60,19 @@ prefix_ unsigned senf::DVBDemuxSectionSocketProtocol::available()
return 4096;
}
prefix_ void senf::DVBDemuxSectionSocketProtocol::setSectionFilter(unsigned short int pid, unsigned int timeout, unsigned int flags, unsigned char filter, unsigned char mask, unsigned char mode)
prefix_ void senf::DVBDemuxSectionSocketProtocol::setSectionFilter(unsigned short int pid, unsigned char filter, unsigned int flags, unsigned char mask, unsigned char mode, unsigned int timeout)
const
{
struct dmx_sct_filter_params sec_filter;
::memset(&sec_filter, 0, sizeof(struct dmx_sct_filter_params));
sec_filter.pid = pid;
sec_filter.filter.filter[0] = filter;
sec_filter.filter.mask[0] = mask;
sec_filter.filter.mode[0] = mode;
sec_filter.flags = flags;
sec_filter.pid = pid;
sec_filter.filter.filter[0] = filter;
sec_filter.filter.mask[0] = mask;
sec_filter.filter.mode[0] = mode;
sec_filter.flags = flags;
if (::ioctl(fd(), DMX_SET_FILTER, filter) < 0)
SENF_THROW_SYSTEM_EXCEPTION("Could not set section filter of DVB adapter.");
if (::ioctl(fd(), DMX_SET_FILTER, &sec_filter) < 0)
SENF_THROW_SYSTEM_EXCEPTION("Could not set section filter of DVB adapter.");
}
// ----------------------------------------------------------------
......
......@@ -76,11 +76,11 @@ namespace senf {
///@}
void setSectionFilter(unsigned short int pid,
unsigned int timeout,
unsigned char filter,
unsigned int flags,
unsigned char filter,
unsigned char mask,
unsigned char mode) const;
unsigned char mode,
unsigned int timeout ) const;
};
typedef ProtocolClientSocketHandle<DVBDemuxSectionSocketProtocol> DVBDemuxSectionHandle;
......
......@@ -83,7 +83,6 @@ prefix_ void senf::DVBSocketController::tuneTo(const string & channel)
string configLine = parser.getConfigLine(channel);
SENF_LOG((senf::log::MESSAGE) ("async: configline found: " << channel) );
frontend = parser.getFrontendParam(configLine);
switch (type) {
case FE_QPSK:
......@@ -156,7 +155,6 @@ prefix_ dvb_frontend_event senf::DVBSocketController::tuneTo_sync(const string &
dvb_frontend_event ev;
string configLine = parser.getConfigLine(channel);
SENF_LOG((senf::log::MESSAGE) ("sync: configline found: " << channel) );
frontend = parser.getFrontendParam(configLine);
switch (type) {
case FE_QPSK:
......
......@@ -9,6 +9,9 @@
#include <senf/Scheduler/Scheduler.hh>
#include "DVBConfigParser.hh"
#include <senf/Console.hh>
#define MPE_TABLEID 62
namespace senf {
std::string status2String(fe_status_t status);
class DVBSocketController : boost::noncopyable
......@@ -69,7 +72,7 @@ public:
unsigned int signalStrength();
void setSectionFilter(unsigned short int pid,
unsigned char filter = 62,
unsigned char filter = MPE_TABLEID,
unsigned int flags = DMX_IMMEDIATE_START | DMX_CHECK_CRC,
unsigned char mask = 0xff,
unsigned char mode = 0,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment