Skip to content

Commit

Permalink
DMX_SET_SOURCE patch for linux kernel v4.17 dmx.h
Browse files Browse the repository at this point in the history
  • Loading branch information
Huevos committed Jul 28, 2018
1 parent 1fcd434 commit b0d0646
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions AutoBouquetsMaker/lib/dvbreader.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,24 @@

#include <Python.h>

/*
DMX_SET_SOURCE no longer exists. For more info check the following:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/include/uapi/linux/dvb/dmx.h?h=v4.17&id=13adefbe9e566c6db91579e4ce17f1e5193d6f2c
*/
#ifndef DMX_SET_SOURCE
typedef enum dmx_source {
DMX_SOURCE_FRONT0 = 0,
DMX_SOURCE_FRONT1,
DMX_SOURCE_FRONT2,
DMX_SOURCE_FRONT3,
DMX_SOURCE_DVR0 = 16,
DMX_SOURCE_DVR1,
DMX_SOURCE_DVR2,
DMX_SOURCE_DVR3
} dmx_source_t;
#define DMX_SET_SOURCE _IOW('o', 49, dmx_source_t)
#endif

PyObject *ss_open(PyObject *self, PyObject *args) {
int fd, pid;
const char *demuxer;
Expand Down

2 comments on commit b0d0646

@LraiZer
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You may also wish to look closer at oe-alliance CrossEPG to apply same patch?
Here could also raise an issue when building with oe-alliance-core nextp3 branch.
https://github.com/oe-alliance/e2openplugin-CrossEPG/blob/master/src/common/dvb/dvb.c#L17-L19

@Huevos
Copy link
Member Author

@Huevos Huevos commented on b0d0646 Jul 28, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.