mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-27 15:32:43 +02:00
libeplayer3: add hal_debug
Origin commit data
------------------
Branch: master
Commit: 43c00c43fa
Author: max_10 <max_10@gmx.de>
Date: 2024-03-24 (Sun, 24 Mar 2024)
Origin message was:
------------------
- libeplayer3: add hal_debug
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -60,7 +60,7 @@ static int CurrentTrack = -1; //no as default.
|
||||
|
||||
static int ManagerAdd(Context_t *context __attribute__((unused)), Track_t track)
|
||||
{
|
||||
subtitle_mgr_printf(10, "%s::%s %s %s %d\n", __FILE__, __FUNCTION__, track.Name, track.Encoding, track.Id);
|
||||
subtitle_mgr_printf(10, "%s %s %d\n", track.Name, track.Encoding, track.Id);
|
||||
|
||||
if (Tracks == NULL)
|
||||
{
|
||||
@@ -74,7 +74,7 @@ static int ManagerAdd(Context_t *context __attribute__((unused)), Track_t track)
|
||||
|
||||
if (Tracks == NULL)
|
||||
{
|
||||
subtitle_mgr_err("%s:%s malloc failed\n", __FILE__, __FUNCTION__);
|
||||
subtitle_mgr_err("malloc failed\n");
|
||||
return cERR_SUBTITLE_MGR_ERROR;
|
||||
}
|
||||
|
||||
@@ -95,16 +95,16 @@ static int ManagerAdd(Context_t *context __attribute__((unused)), Track_t track)
|
||||
}
|
||||
else
|
||||
{
|
||||
subtitle_mgr_err("%s::%s TrackCount out if range %d - %d\n", __FILE__, __FUNCTION__, TrackCount, TRACKWRAP);
|
||||
subtitle_mgr_err("TrackCount out if range %d - %d\n", TrackCount, TRACKWRAP);
|
||||
return cERR_SUBTITLE_MGR_ERROR;
|
||||
}
|
||||
|
||||
if (TrackCount > 0)
|
||||
{
|
||||
// context->playback->isSubtitle = 1;
|
||||
context->playback->isSubtitle = 1;
|
||||
}
|
||||
|
||||
subtitle_mgr_printf(10, "%s::%s\n", __FILE__, __FUNCTION__);
|
||||
subtitle_mgr_printf(10, "\n");
|
||||
|
||||
return cERR_SUBTITLE_MGR_NO_ERROR;
|
||||
}
|
||||
@@ -114,7 +114,7 @@ static char **ManagerList(Context_t *context __attribute__((unused)))
|
||||
int i = 0, j = 0;
|
||||
char **tracklist = NULL;
|
||||
|
||||
subtitle_mgr_printf(10, "%s::%s\n", __FILE__, __FUNCTION__);
|
||||
subtitle_mgr_printf(10, "\n");
|
||||
|
||||
if (Tracks != NULL)
|
||||
{
|
||||
@@ -122,7 +122,7 @@ static char **ManagerList(Context_t *context __attribute__((unused)))
|
||||
|
||||
if (tracklist == NULL)
|
||||
{
|
||||
subtitle_mgr_err("%s::%s malloc failed\n", __FILE__, __FUNCTION__);
|
||||
subtitle_mgr_err("malloc failed\n");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -142,7 +142,7 @@ static char **ManagerList(Context_t *context __attribute__((unused)))
|
||||
tracklist[j] = NULL;
|
||||
}
|
||||
|
||||
subtitle_mgr_printf(10, "%s::%s return %p (%d - %d)\n", __FILE__, __FUNCTION__, tracklist, j, TrackCount);
|
||||
subtitle_mgr_printf(10, "return %p (%d - %d)\n", tracklist, j, TrackCount);
|
||||
|
||||
return tracklist;
|
||||
}
|
||||
@@ -151,7 +151,7 @@ static int ManagerDel(Context_t *context __attribute__((unused)))
|
||||
{
|
||||
int i = 0;
|
||||
|
||||
subtitle_mgr_printf(10, "%s::%s\n", __FILE__, __FUNCTION__);
|
||||
subtitle_mgr_printf(10, "\n");
|
||||
|
||||
if (Tracks != NULL)
|
||||
{
|
||||
@@ -165,7 +165,7 @@ static int ManagerDel(Context_t *context __attribute__((unused)))
|
||||
}
|
||||
else
|
||||
{
|
||||
subtitle_mgr_err("%s::%s nothing to delete!\n", __FILE__, __FUNCTION__);
|
||||
subtitle_mgr_err("nothing to delete!\n");
|
||||
return cERR_SUBTITLE_MGR_ERROR;
|
||||
}
|
||||
|
||||
@@ -173,7 +173,7 @@ static int ManagerDel(Context_t *context __attribute__((unused)))
|
||||
CurrentTrack = -1;
|
||||
// context->playback->isSubtitle = 0;
|
||||
|
||||
subtitle_mgr_printf(10, "%s::%s return no error\n", __FILE__, __FUNCTION__);
|
||||
subtitle_mgr_printf(10, "return no error\n");
|
||||
|
||||
return cERR_SUBTITLE_MGR_NO_ERROR;
|
||||
}
|
||||
@@ -182,7 +182,7 @@ static int Command(Context_t *context, ManagerCmd_t command, void *argument)
|
||||
{
|
||||
int ret = cERR_SUBTITLE_MGR_NO_ERROR;
|
||||
|
||||
subtitle_mgr_printf(50, "%s::%s %d\n", __FILE__, __FUNCTION__, command);
|
||||
subtitle_mgr_printf(50, "%d\n", command);
|
||||
|
||||
switch (command)
|
||||
{
|
||||
@@ -200,7 +200,7 @@ static int Command(Context_t *context, ManagerCmd_t command, void *argument)
|
||||
}
|
||||
case MANAGER_GET:
|
||||
{
|
||||
subtitle_mgr_printf(20, "%s::%s MANAGER_GET\n", FILENAME, __FUNCTION__);
|
||||
subtitle_mgr_printf(20, "MANAGER_GET\n");
|
||||
|
||||
if (TrackCount > 0 && CurrentTrack >= 0)
|
||||
{
|
||||
@@ -234,7 +234,7 @@ static int Command(Context_t *context, ManagerCmd_t command, void *argument)
|
||||
}
|
||||
case MANAGER_GET_TRACK:
|
||||
{
|
||||
subtitle_mgr_printf(20, "%s::%s MANAGER_GET_TRACK\n", FILENAME, __FUNCTION__);
|
||||
subtitle_mgr_printf(20, "MANAGER_GET_TRACK\n");
|
||||
|
||||
if ((TrackCount > 0) && (CurrentTrack >= 0))
|
||||
{
|
||||
@@ -274,7 +274,7 @@ static int Command(Context_t *context, ManagerCmd_t command, void *argument)
|
||||
{
|
||||
int i;
|
||||
|
||||
subtitle_mgr_printf(20, "%s::%s MANAGER_SET id=%d\n", __FILE__, __FUNCTION__, *((int *)argument));
|
||||
subtitle_mgr_printf(20, "MANAGER_SET id=%d\n", *((int *)argument));
|
||||
|
||||
if (*((int *)argument) < 0)
|
||||
{
|
||||
@@ -293,7 +293,7 @@ static int Command(Context_t *context, ManagerCmd_t command, void *argument)
|
||||
|
||||
if (i == TrackCount)
|
||||
{
|
||||
subtitle_mgr_err("%s::%s track id %d unknown\n", __FILE__, __FUNCTION__, *((int *)argument));
|
||||
subtitle_mgr_err("track id %d unknown\n", *((int *)argument));
|
||||
ret = cERR_SUBTITLE_MGR_ERROR;
|
||||
}
|
||||
break;
|
||||
@@ -313,12 +313,12 @@ static int Command(Context_t *context, ManagerCmd_t command, void *argument)
|
||||
break;
|
||||
}
|
||||
default:
|
||||
subtitle_mgr_err("%s::%s ContainerCmd not supported!", __FILE__, __FUNCTION__);
|
||||
subtitle_mgr_err("ContainerCmd not supported!");
|
||||
ret = cERR_SUBTITLE_MGR_ERROR;
|
||||
break;
|
||||
}
|
||||
|
||||
subtitle_mgr_printf(50, "%s::%s returning %d\n", __FILE__, __FUNCTION__, ret);
|
||||
subtitle_mgr_printf(50, "returning %d\n", ret);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
Reference in New Issue
Block a user