mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
vdr-control: add patch to fix segfault when stopping vdr
This commit is contained in:
parent
6bf5489bd2
commit
1355da624e
28
packages/3rdparty/multimedia/vdr-control/patches/vdr-control-0.0.2a-95_vdr-crash-fix.patch
vendored
Normal file
28
packages/3rdparty/multimedia/vdr-control/patches/vdr-control-0.0.2a-95_vdr-crash-fix.patch
vendored
Normal file
@ -0,0 +1,28 @@
|
||||
diff -Nru control-0.0.2a-kw3/control.c control-0.0.2a-kw3_0/control.c
|
||||
--- control-0.0.2a-kw3/control.c 2008-09-26 16:19:29.000000000 +0200
|
||||
+++ control-0.0.2a-kw3_0/control.c 2012-08-04 12:17:08.000000000 +0200
|
||||
@@ -32,6 +32,7 @@
|
||||
class cPluginControl : public cPlugin {
|
||||
private:
|
||||
// Add any member variables or functions you may need here.
|
||||
+ cCtrlState* _pState;
|
||||
cCtrlGateways* _pReceivers;
|
||||
cCtrlGateway* _pTerminal;
|
||||
|
||||
@@ -67,6 +68,7 @@
|
||||
cPluginControl::~cPluginControl()
|
||||
{
|
||||
// Clean up after yourself!
|
||||
+ delete(_pState);
|
||||
delete(_pReceivers);
|
||||
delete(_pTerminal);
|
||||
}
|
||||
@@ -120,7 +122,7 @@
|
||||
// Start any background activities the plugin shall perform.
|
||||
|
||||
if (glParPort || glParTerminal && *glParTerminal)
|
||||
- new cCtrlState();
|
||||
+ _pState = new cCtrlState();
|
||||
|
||||
if (glParPort) {
|
||||
_pReceivers = new cCtrlGateways();
|
Loading…
x
Reference in New Issue
Block a user