diff mbox

[4/6] libdvbv5: added dmx stop function

Message ID 1343989619-12928-4-git-send-email-neolynx@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

André Roth Aug. 3, 2012, 10:26 a.m. UTC
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(-)
diff mbox

Patch

diff --git a/lib/include/dvb-demux.h b/lib/include/dvb-demux.h
index afd6840..923016e 100644
--- a/lib/include/dvb-demux.h
+++ b/lib/include/dvb-demux.h
@@ -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);
 
diff --git a/lib/libdvbv5/dvb-demux.c b/lib/libdvbv5/dvb-demux.c
index d07e6cf..6ed2dcd 100644
--- a/lib/libdvbv5/dvb-demux.c
+++ b/lib/libdvbv5/dvb-demux.c
@@ -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;