mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 15:02:58 +02:00
- rename lt_debug => hal_debug; it's not only libtriple debugging
Signed-off-by: Thilo Graf <dbt@novatux.de> - debuglevel fixed
This commit is contained in:
@@ -10,10 +10,10 @@
|
||||
|
||||
#include "player.h"
|
||||
#include "playback_libeplayer3.h"
|
||||
#include "lt_debug.h"
|
||||
#include "hal_debug.h"
|
||||
|
||||
#define lt_debug(args...) _lt_debug(HAL_DEBUG_PLAYBACK, this, args)
|
||||
#define lt_info(args...) _lt_info(HAL_DEBUG_PLAYBACK, this, args)
|
||||
#define hal_debug(args...) _hal_debug(HAL_DEBUG_PLAYBACK, this, args)
|
||||
#define hal_info(args...) _hal_info(HAL_DEBUG_PLAYBACK, this, args)
|
||||
|
||||
extern cAudio *audioDecoder;
|
||||
extern cVideo *videoDecoder;
|
||||
@@ -40,7 +40,7 @@ bool cPlayback::Open(playmode_t PlayMode)
|
||||
|
||||
void cPlayback::Close(void)
|
||||
{
|
||||
lt_info("%s\n", __func__);
|
||||
hal_info("%s\n", __func__);
|
||||
|
||||
//Dagobert: movieplayer does not call stop, it calls close ;)
|
||||
Stop();
|
||||
@@ -63,7 +63,7 @@ bool cPlayback::Start(char *filename, int vpid, int vtype, int apid, int ac3, in
|
||||
bool isHTTP = false;
|
||||
no_probe = false;
|
||||
|
||||
lt_info("%s - filename=%s vpid=%u vtype=%d apid=%u ac3=%d\n", __func__, filename, vpid, vtype, apid, ac3);
|
||||
hal_info("%s - filename=%s vpid=%u vtype=%d apid=%u ac3=%d\n", __func__, filename, vpid, vtype, apid, ac3);
|
||||
|
||||
init_jump = -1;
|
||||
|
||||
@@ -129,7 +129,7 @@ bool cPlayback::Start(char *filename, int vpid, int vtype, int apid, int ac3, in
|
||||
|
||||
bool cPlayback::Stop(void)
|
||||
{
|
||||
lt_info("%s playing %d\n", __func__, playing);
|
||||
hal_info("%s playing %d\n", __func__, playing);
|
||||
|
||||
player->Stop();
|
||||
player->output.Close();
|
||||
@@ -141,7 +141,7 @@ bool cPlayback::Stop(void)
|
||||
|
||||
bool cPlayback::SetAPid(int pid, bool /* ac3 */)
|
||||
{
|
||||
lt_info("%s\n", __func__);
|
||||
hal_info("%s\n", __func__);
|
||||
return player->SwitchAudio(pid);
|
||||
}
|
||||
|
||||
@@ -162,7 +162,7 @@ bool cPlayback::SetTeletextPid(int pid)
|
||||
|
||||
bool cPlayback::SetSpeed(int speed)
|
||||
{
|
||||
lt_info("%s playing %d speed %d\n", __func__, playing, speed);
|
||||
hal_info("%s playing %d speed %d\n", __func__, playing, speed);
|
||||
|
||||
if (!decoders_closed)
|
||||
{
|
||||
@@ -211,7 +211,7 @@ bool cPlayback::SetSpeed(int speed)
|
||||
|
||||
bool cPlayback::GetSpeed(int &speed) const
|
||||
{
|
||||
lt_debug("%s\n", __func__);
|
||||
hal_debug("%s\n", __func__);
|
||||
speed = nPlaybackSpeed;
|
||||
return true;
|
||||
}
|
||||
@@ -225,7 +225,7 @@ void cPlayback::GetPts(uint64_t &pts)
|
||||
bool cPlayback::GetPosition(int &position, int &duration)
|
||||
{
|
||||
bool got_duration = false;
|
||||
lt_debug("%s %d %d\n", __func__, position, duration);
|
||||
hal_debug("%s %d %d\n", __func__, position, duration);
|
||||
|
||||
/* hack: if the file is growing (timeshift), then determine its length
|
||||
* by comparing the mtime with the mtime of the xml file */
|
||||
@@ -253,7 +253,7 @@ bool cPlayback::GetPosition(int &position, int &duration)
|
||||
return false;
|
||||
|
||||
if (!player->isPlaying) {
|
||||
lt_info("%s !!!!EOF!!!! < -1\n", __func__);
|
||||
hal_info("%s !!!!EOF!!!! < -1\n", __func__);
|
||||
position = duration + 1000;
|
||||
// duration = 0;
|
||||
// this is stupid
|
||||
@@ -287,7 +287,7 @@ bool cPlayback::GetPosition(int &position, int &duration)
|
||||
|
||||
bool cPlayback::SetPosition(int position, bool absolute)
|
||||
{
|
||||
lt_info("%s %d\n", __func__, position);
|
||||
hal_info("%s %d\n", __func__, position);
|
||||
if (!playing)
|
||||
{
|
||||
/* the calling sequence is:
|
||||
@@ -305,7 +305,7 @@ bool cPlayback::SetPosition(int position, bool absolute)
|
||||
|
||||
void cPlayback::FindAllPids(int *pids, unsigned int *ac3flags, unsigned int *numpids, std::string *language)
|
||||
{
|
||||
lt_info("%s\n", __func__);
|
||||
hal_info("%s\n", __func__);
|
||||
unsigned int i = 0;
|
||||
|
||||
std::vector<Track> tracks = player->manager.getAudioTracks();
|
||||
@@ -320,7 +320,7 @@ void cPlayback::FindAllPids(int *pids, unsigned int *ac3flags, unsigned int *num
|
||||
|
||||
void cPlayback::FindAllSubtitlePids(int *pids, unsigned int *numpids, std::string *language)
|
||||
{
|
||||
lt_info("%s\n", __func__);
|
||||
hal_info("%s\n", __func__);
|
||||
unsigned int i = 0;
|
||||
|
||||
std::vector<Track> tracks = player->manager.getSubtitleTracks();
|
||||
@@ -335,7 +335,7 @@ void cPlayback::FindAllSubtitlePids(int *pids, unsigned int *numpids, std::strin
|
||||
|
||||
void cPlayback::FindAllTeletextsubtitlePids(int *pids, unsigned int *numpids, std::string *language, int *mags, int *pages)
|
||||
{
|
||||
lt_info("%s\n", __func__);
|
||||
hal_info("%s\n", __func__);
|
||||
unsigned int i = 0;
|
||||
|
||||
std::vector<Track> tracks = player->manager.getTeletextTracks();
|
||||
@@ -396,7 +396,7 @@ void cPlayback::GetMetadata(std::vector<std::string> &keys, std::vector<std::str
|
||||
|
||||
cPlayback::cPlayback(int num __attribute__((unused)))
|
||||
{
|
||||
lt_info("%s\n", __func__);
|
||||
hal_info("%s\n", __func__);
|
||||
playing = false;
|
||||
decoders_closed = false;
|
||||
ProgramSelectionCallback = NULL;
|
||||
@@ -407,7 +407,7 @@ cPlayback::cPlayback(int num __attribute__((unused)))
|
||||
|
||||
cPlayback::~cPlayback()
|
||||
{
|
||||
lt_info("%s\n", __func__);
|
||||
hal_info("%s\n", __func__);
|
||||
delete player;
|
||||
}
|
||||
|
||||
@@ -427,7 +427,7 @@ uint64_t cPlayback::GetReadCount() {
|
||||
|
||||
int cPlayback::GetAPid(void)
|
||||
{
|
||||
lt_info("%s\n", __func__);
|
||||
hal_info("%s\n", __func__);
|
||||
return player->GetAudioPid();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user