@@ -37,6 +37,7 @@ extern "C" {
int dvb_dmx_open(int adapter, int demux);
void dvb_dmx_close(int dmx_fd);
+void dvb_dmx_stop(int dmx_fd);
int dvb_set_pesfilter(int dmxfd, int pid, dmx_pes_type_t type, dmx_output_t output, int buffersize);
@@ -55,6 +55,11 @@ void dvb_dmx_close(int dmx_fd)
close( dmx_fd);
}
+void dvb_dmx_stop(int dmx_fd)
+{
+ (void) ioctl( dmx_fd, DMX_STOP);
+}
+
int dvb_set_pesfilter(int dmxfd, int pid, dmx_pes_type_t type, dmx_output_t output, int buffersize)
{
struct dmx_pes_filter_params pesfilter;
Signed-off-by: André Roth <neolynx@gmail.com> --- lib/include/dvb-demux.h | 1 + lib/libdvbv5/dvb-demux.c | 5 +++++ 2 files changed, 6 insertions(+), 0 deletions(-)