mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 15:02:43 +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;
|
||||
init_jump = -1;
|
||||
|
||||
mutex.lock();
|
||||
if (player)
|
||||
if (!player)
|
||||
{
|
||||
free(player);
|
||||
player = NULL;
|
||||
player = (Context_t *) malloc(sizeof(Context_t));
|
||||
}
|
||||
mutex.unlock();
|
||||
|
||||
player = (Context_t *) malloc(sizeof(Context_t));
|
||||
|
||||
if (player)
|
||||
{
|
||||
@@ -773,6 +768,7 @@ cPlayback::cPlayback(int num __attribute__((unused)))
|
||||
playing = false;
|
||||
decoders_closed = false;
|
||||
first = false;
|
||||
player = NULL;
|
||||
}
|
||||
|
||||
cPlayback::~cPlayback()
|
||||
|
Reference in New Issue
Block a user