mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 23:13:16 +02:00
spark: remove videodecoder hack from dmx destructor
This commit is contained in:
@@ -152,18 +152,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;
|
|
||||||
/* wait until Read() has released the mutex */
|
/* wait until Read() has released the mutex */
|
||||||
(*P->mutex).lock();
|
(*P->mutex).lock();
|
||||||
(*P->mutex).unlock();
|
(*P->mutex).unlock();
|
||||||
|
Reference in New Issue
Block a user