Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/src/dvb/dvb_adapter.c b/src/dvb/dvb_adapter.c
- index 8b3878d..72754a5 100644
- --- a/src/dvb/dvb_adapter.c
- +++ b/src/dvb/dvb_adapter.c
- @@ -1022,7 +1022,7 @@ dvb_adapter_input_dvr(void *aux)
- dmx_param.pes_type = DMX_PES_OTHER;
- dmx_param.flags = DMX_IMMEDIATE_START;
- - if(ioctl(dmx, DMX_SET_PES_FILTER, &dmx_param)) {
- + if(ioctl(dmx, DMX_SET_PES_FILTER, &dmx_param) == -1) {
- tvhlog(LOG_ERR, "dvb",
- "Unable to configure demuxer \"%s\" for all PIDs -- %s",
- tda->tda_demux_path, strerror(errno));
- diff --git a/src/dvb/dvb_input_filtered.c b/src/dvb/dvb_input_filtered.c
- index a4dddf2..6a124a5 100644
- --- a/src/dvb/dvb_input_filtered.c
- +++ b/src/dvb/dvb_input_filtered.c
- @@ -71,7 +71,7 @@ open_service(th_dvb_adapter_t *tda, service_t *s)
- dmx_param.pes_type = DMX_PES_OTHER;
- dmx_param.flags = DMX_IMMEDIATE_START;
- - if(ioctl(fd, DMX_SET_PES_FILTER, &dmx_param)) {
- + if(ioctl(fd, DMX_SET_PES_FILTER, &dmx_param) == -1) {
- tvhlog(LOG_ERR, "dvb",
- "\"%s\" unable to configure demuxer \"%s\" for pid %d -- %s",
- s->s_identifier, tda->tda_demux_path,
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement