mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 23:12:44 +02:00
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user