mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 15:02:58 +02:00
libeplayer3-arm: malloc player once on neutrino start
This commit is contained in:
@@ -51,15 +51,10 @@ bool cPlayback::Open(playmode_t PlayMode)
|
|||||||
nPlaybackSpeed = 0;
|
nPlaybackSpeed = 0;
|
||||||
init_jump = -1;
|
init_jump = -1;
|
||||||
|
|
||||||
mutex.lock();
|
if (!player)
|
||||||
if (player)
|
|
||||||
{
|
{
|
||||||
free(player);
|
player = (Context_t *) malloc(sizeof(Context_t));
|
||||||
player = NULL;
|
|
||||||
}
|
}
|
||||||
mutex.unlock();
|
|
||||||
|
|
||||||
player = (Context_t *) malloc(sizeof(Context_t));
|
|
||||||
|
|
||||||
if (player)
|
if (player)
|
||||||
{
|
{
|
||||||
@@ -773,6 +768,7 @@ cPlayback::cPlayback(int num __attribute__((unused)))
|
|||||||
playing = false;
|
playing = false;
|
||||||
decoders_closed = false;
|
decoders_closed = false;
|
||||||
first = false;
|
first = false;
|
||||||
|
player = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
cPlayback::~cPlayback()
|
cPlayback::~cPlayback()
|
||||||
|
Reference in New Issue
Block a user