--- enigma/lib/dvb/decoderOrig.cpp 2007-09-24 08:35:38.000000000 +0100 +++ enigma/lib/dvb/decoder.cpp 2007-04-03 22:27:14.000000000 +0100 @@ -1,3 +1,6 @@ +/***************************** +/apps/tuxbox/enigma/lib/dvb/ +*******************************/ #include #if HAVE_DVB_API_VERSION < 3 #include @@ -71,6 +74,19 @@ int Decoder::fd::mpeg; int Decoder::locked=0; +/**********************************************/ + +void Decoder::closeDemuxVA() +{ +// eDebug("fd.demux_video audio closed"); + close(fd.demux_video); + close(fd.demux_audio); + fd.demux_video = -1; + fd.demux_audio = -1; +} + +/**********************************************/ + static void SetECM(int vpid, int apid, int pmtpid, int descriptor_length, __u8 *descriptors) { #if 0 --- enigma/include/lib/dvb/decoderOrig.h 2007-09-24 08:35:37.000000000 +0100 +++ enigma/include/lib/dvb/decoder.h 2007-04-03 22:27:44.000000000 +0100 @@ -1,3 +1,7 @@ +/*********************************************** +/apps/tuxbox/enigma/include/lib/dvb/ +***************************************/ + #ifndef __DECODER_H #define __DECODER_H @@ -58,6 +62,9 @@ static int getSTC(unsigned long long &stc); static void setAutoFlushScreen(int); static void setFastZap(int); +/***************************************************/ + static void Decoder::closeDemuxVA(); +/************************************************/ }; #endif /* StopTVplay by pcd 2006*/ #include #include #include // our plugin entry point, declared to use C calling convention extern "C" int plugin_exec( PluginParam *par ); int plugin_exec( PluginParam *par ) { Decoder::Decoder::closeDemuxVA(); return 0; }