diff --git a/libeplayer3/container/container_ffmpeg.c b/libeplayer3/container/container_ffmpeg.c index 837febf..eedc2ca 100644 --- a/libeplayer3/container/container_ffmpeg.c +++ b/libeplayer3/container/container_ffmpeg.c @@ -438,6 +438,8 @@ static void FFMPEGThread(Context_t *context) { Track_t * teletextTrack = NULL; #endif + context->playback->readCount += packet.size; + int pid = avContext->streams[packet.stream_index]->id; if (context->manager->video->Command(context, MANAGER_GET_TRACK, &videoTrack) < 0) diff --git a/libeplayer3/include/playback.h b/libeplayer3/include/playback.h index 02f1e07..34189ff 100644 --- a/libeplayer3/include/playback.h +++ b/libeplayer3/include/playback.h @@ -33,8 +33,8 @@ typedef struct PlaybackHandler_s { int (* Command) (/*Context_t*/void *, PlaybackCmd_t, void *); char * uri; - off_t size; unsigned char noprobe; /* hack: only minimal probing in av_find_stream_info */ + unsigned long long readCount; } PlaybackHandler_t; #endif