mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-27 15:33:00 +02:00
libtriple: improve debug architecture
every libtriple module can have its debug output enabled separately by exporting the TRIPLE_DEBUG variable
This commit is contained in:
@@ -11,6 +11,8 @@
|
||||
#include "audio_td.h"
|
||||
#include "video_td.h"
|
||||
#include "lt_debug.h"
|
||||
#define lt_debug(args...) _lt_debug(TRIPLE_DEBUG_PLAYBACK, args)
|
||||
#define lt_info(args...) _lt_info(TRIPLE_DEBUG_PLAYBACK, args)
|
||||
|
||||
#include <tddevices.h>
|
||||
#define DVR "/dev/" DEVICE_NAME_PVR
|
||||
@@ -497,7 +499,7 @@ bool cPlayback::GetPosition(int &position, int &duration)
|
||||
if (update && duration >= 4000)
|
||||
{
|
||||
bytes_per_second = currsize / (duration / 1000);
|
||||
lt_debug("cPlayback:%s: updated bps: %lld size: %lld duration %d\n",
|
||||
lt_debug("%s: updated bps: %lld size: %lld duration %d\n",
|
||||
__FUNCTION__, bytes_per_second, currsize, duration);
|
||||
}
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user