armbox: eplayer3 add read-count

This commit is contained in:
redblue-pkt
2019-01-06 23:41:04 +01:00
committed by Thilo Graf
parent 0b92f90ce2
commit 5f71277215
4 changed files with 8 additions and 4 deletions

View File

@@ -791,10 +791,10 @@ bool cPlayback::IsPlaying()
uint64_t cPlayback::GetReadCount()
{
//if (player && player->playback)
//{
// return player->playback->readCount;
//}
if (player && player->playback)
{
return player->playback->readCount;
}
return 0;
}

View File

@@ -783,6 +783,8 @@ static void FFMPEGThread(Context_t *context)
Track_t *audioTrack = NULL;
Track_t *subtitleTrack = NULL;
context->playback->readCount += packet.size;
int32_t pid = avContextTab[cAVIdx]->streams[packet.stream_index]->id;
reset_finish_timeout();

View File

@@ -51,6 +51,7 @@ typedef struct PlaybackHandler_s
int32_t BackWard;
int32_t SlowMotion;
int32_t Speed;
uint64_t readCount;
int32_t AVSync;
uint8_t isVideo;

View File

@@ -1006,6 +1006,7 @@ PlaybackHandler_t PlaybackHandler =
0, //BackWard
0, //SlowMotion
0, //Speed
0, //readCount
0, //AVSync
0, //isVideo
0, //isAudio