mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 23:13:16 +02:00
armbox: eplayer3 add read-count
This commit is contained in:
@@ -791,10 +791,10 @@ bool cPlayback::IsPlaying()
|
|||||||
|
|
||||||
uint64_t cPlayback::GetReadCount()
|
uint64_t cPlayback::GetReadCount()
|
||||||
{
|
{
|
||||||
//if (player && player->playback)
|
if (player && player->playback)
|
||||||
//{
|
{
|
||||||
// return player->playback->readCount;
|
return player->playback->readCount;
|
||||||
//}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -783,6 +783,8 @@ static void FFMPEGThread(Context_t *context)
|
|||||||
Track_t *audioTrack = NULL;
|
Track_t *audioTrack = NULL;
|
||||||
Track_t *subtitleTrack = NULL;
|
Track_t *subtitleTrack = NULL;
|
||||||
|
|
||||||
|
context->playback->readCount += packet.size;
|
||||||
|
|
||||||
int32_t pid = avContextTab[cAVIdx]->streams[packet.stream_index]->id;
|
int32_t pid = avContextTab[cAVIdx]->streams[packet.stream_index]->id;
|
||||||
|
|
||||||
reset_finish_timeout();
|
reset_finish_timeout();
|
||||||
|
@@ -51,6 +51,7 @@ typedef struct PlaybackHandler_s
|
|||||||
int32_t BackWard;
|
int32_t BackWard;
|
||||||
int32_t SlowMotion;
|
int32_t SlowMotion;
|
||||||
int32_t Speed;
|
int32_t Speed;
|
||||||
|
uint64_t readCount;
|
||||||
int32_t AVSync;
|
int32_t AVSync;
|
||||||
|
|
||||||
uint8_t isVideo;
|
uint8_t isVideo;
|
||||||
|
@@ -1006,6 +1006,7 @@ PlaybackHandler_t PlaybackHandler =
|
|||||||
0, //BackWard
|
0, //BackWard
|
||||||
0, //SlowMotion
|
0, //SlowMotion
|
||||||
0, //Speed
|
0, //Speed
|
||||||
|
0, //readCount
|
||||||
0, //AVSync
|
0, //AVSync
|
||||||
0, //isVideo
|
0, //isVideo
|
||||||
0, //isAudio
|
0, //isAudio
|
||||||
|
Reference in New Issue
Block a user