spark: fix race condition in cDemux

cDemux destructor was racing with Read() which did lead to all
sorts of nasty crashes because after poll returned, the dmx object
could be gone and its memory replaced with totally different things.


Origin commit data
------------------
Branch: master
Commit: b67a0a7e44
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2015-02-20 (Fri, 20 Feb 2015)



------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2015-02-20 09:30:19 +01:00
committed by max_10
parent d932311ff2
commit 14228d554c
2 changed files with 35 additions and 4 deletions

View File

@@ -42,6 +42,7 @@ class cDemux
struct dmx_pes_filter_params p_flt;
int last_source;
bool _open(void);
void *pdata;
public:
bool Open(DMX_CHANNEL_TYPE pes_type, void * unused = NULL, int bufsize = 0);