mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 15:02:43 +02:00
libeplayer3: rename Content_t => Player
Origin commit data
------------------
Branch: master
Commit: dd527fdfba
Author: martii <m4rtii@gmx.de>
Date: 2014-04-06 (Sun, 06 Apr 2014)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -15,7 +15,7 @@ extern ManagerHandler_t ManagerHandler;
|
||||
|
||||
#include "playback_libeplayer3.h"
|
||||
|
||||
static Context_t *player = NULL;
|
||||
static Player *player = NULL;
|
||||
|
||||
extern cAudio *audioDecoder;
|
||||
extern cVideo *videoDecoder;
|
||||
@@ -51,7 +51,7 @@ bool cPlayback::Open(playmode_t PlayMode)
|
||||
nPlaybackSpeed = 0;
|
||||
init_jump = -1;
|
||||
|
||||
player = (Context_t*) malloc(sizeof(Context_t));
|
||||
player = new Player();
|
||||
|
||||
if(player) {
|
||||
player->playback = &PlaybackHandler;
|
||||
@@ -252,9 +252,10 @@ bool cPlayback::Stop(void)
|
||||
|
||||
if(player && player->playback)
|
||||
player->playback->Command(player,PLAYBACK_CLOSE, NULL);
|
||||
if(player)
|
||||
free(player);
|
||||
player = NULL;
|
||||
if(player) {
|
||||
delete player;
|
||||
player = NULL;
|
||||
}
|
||||
|
||||
playing=false;
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user