armbox: remove videodecoder hack from dmx destructor

Origin commit data
------------------
Branch: master
Commit: a5ee425996
Author: max_10 <max_10@gmx.de>
Date: 2017-10-07 (Sat, 07 Oct 2017)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
max_10
2017-10-07 21:02:27 +02:00
parent 9107d787d7
commit e6b8a03427

View File

@@ -147,18 +147,6 @@ cDemux::~cDemux()
{ {
lt_debug("%s #%d fd: %d\n", __FUNCTION__, num, fd); lt_debug("%s #%d fd: %d\n", __FUNCTION__, num, fd);
Close(); Close();
/* in zapit.cpp, videoDemux is deleted after videoDecoder
* in the video watchdog, we access videoDecoder
* the thread still runs after videoDecoder has been deleted
* => set videoDecoder to NULL here to make the check in the
* watchdog thread pick this up.
* This is ugly, but it saves me from changing neutrino
*
* if the delete order in neutrino will ever be changed, this
* will blow up badly :-(
*/
if (dmx_type == DMX_VIDEO_CHANNEL)
videoDecoder = NULL;
} }
bool cDemux::Open(DMX_CHANNEL_TYPE pes_type, void * /*hVideoBuffer*/, int uBufferSize) bool cDemux::Open(DMX_CHANNEL_TYPE pes_type, void * /*hVideoBuffer*/, int uBufferSize)