mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-27 15:33:00 +02:00
Refactoring debug code
Conflicts: libeplayer3-arm/container/container_ffmpeg.c
This commit is contained in:
@@ -101,7 +101,7 @@ static void update_finish_timeout()
|
||||
maxInjectedPts = 0;
|
||||
}
|
||||
|
||||
//printf("ret[%d] playPts[%lld] currPts[%lld] maxInjectedPts[%lld]\n", ret, playPts, currPts, maxInjectedPts);
|
||||
//printf("ret[%d] playPts[%" PRId64 "] currPts[%" PRId64 "] maxInjectedPts[%" PRId64 "]\n", ret, playPts, currPts, maxInjectedPts);
|
||||
|
||||
/* On some STBs PTS readed from decoder is invalid after seek or at start
|
||||
* this is the reason for additional validation when we what to close immediately
|
||||
@@ -596,7 +596,7 @@ static int64_t ffmpeg_seek(void *opaque __attribute__((unused)), int64_t offset,
|
||||
if (diff > 0 && diff < rwdiff)
|
||||
{
|
||||
/* can do the seek inside the buffer */
|
||||
ffmpeg_printf(20, "buffer-seek diff=%lld\n", diff);
|
||||
ffmpeg_printf(20, "buffer-seek diff=%" PRId64 "\n", diff);
|
||||
if (diff > (ffmpeg_buf + ffmpeg_buf_size) - ffmpeg_buf_read)
|
||||
{
|
||||
ffmpeg_buf_read = ffmpeg_buf + (diff - ((ffmpeg_buf + ffmpeg_buf_size) - ffmpeg_buf_read));
|
||||
@@ -609,7 +609,7 @@ static int64_t ffmpeg_seek(void *opaque __attribute__((unused)), int64_t offset,
|
||||
else if (diff < 0 && diff * -1 < ffmpeg_buf_valid_size)
|
||||
{
|
||||
/* can do the seek inside the buffer */
|
||||
ffmpeg_printf(20, "buffer-seek diff=%lld\n", diff);
|
||||
ffmpeg_printf(20, "buffer-seek diff=%" PRId64 "\n", diff);
|
||||
int32_t tmpdiff = diff * -1;
|
||||
if (tmpdiff > ffmpeg_buf_read - ffmpeg_buf)
|
||||
{
|
||||
@@ -623,7 +623,7 @@ static int64_t ffmpeg_seek(void *opaque __attribute__((unused)), int64_t offset,
|
||||
else
|
||||
{
|
||||
releasefillerMutex(__FILE__, __FUNCTION__, __LINE__);
|
||||
ffmpeg_printf(20, "real-seek diff=%lld\n", diff);
|
||||
ffmpeg_printf(20, "real-seek diff=%" PRId64 "\n", diff);
|
||||
|
||||
ffmpeg_do_seek_ret = 0;
|
||||
ffmpeg_do_seek = diff;
|
||||
|
Reference in New Issue
Block a user