mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 23:12:44 +02:00
libeplayer3-arm: malloc player once on neutrino start
Origin commit data
------------------
Branch: master
Commit: 73352555ff
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2020-01-01 (Wed, 01 Jan 2020)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
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