mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 23:12:44 +02:00
armbox: eplayer3 add read-count
Origin commit data
------------------
Branch: master
Commit: ef45a9f370
Author: redblue-pkt <redblue-pkt@orange.pl>
Date: 2019-01-06 (Sun, 06 Jan 2019)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -782,10 +782,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;
|
||||
}
|
||||
|
||||
|
@@ -782,6 +782,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();
|
||||
|
@@ -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;
|
||||
|
@@ -1006,6 +1006,7 @@ PlaybackHandler_t PlaybackHandler =
|
||||
0, //BackWard
|
||||
0, //SlowMotion
|
||||
0, //Speed
|
||||
0, //readCount
|
||||
0, //AVSync
|
||||
0, //isVideo
|
||||
0, //isAudio
|
||||
|
Reference in New Issue
Block a user