mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 23:12:44 +02:00
libstb-hal/libspark/playback: add method for retrieving read-count
Origin commit data
------------------
Branch: master
Commit: de39d0cdc7
Author: martii <m4rtii@gmx.de>
Date: 2013-11-04 (Mon, 04 Nov 2013)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -437,6 +437,8 @@ static void FFMPEGThread(Context_t *context) {
|
|||||||
Track_t * dvbsubtitleTrack = NULL;
|
Track_t * dvbsubtitleTrack = NULL;
|
||||||
Track_t * teletextTrack = NULL;
|
Track_t * teletextTrack = NULL;
|
||||||
|
|
||||||
|
context->playback->readCount += packet.size;
|
||||||
|
|
||||||
int pid = avContext->streams[packet.stream_index]->id;
|
int pid = avContext->streams[packet.stream_index]->id;
|
||||||
|
|
||||||
if (context->manager->video->Command(context, MANAGER_GET_TRACK, &videoTrack) < 0)
|
if (context->manager->video->Command(context, MANAGER_GET_TRACK, &videoTrack) < 0)
|
||||||
|
@@ -33,8 +33,8 @@ typedef struct PlaybackHandler_s {
|
|||||||
|
|
||||||
int (* Command) (/*Context_t*/void *, PlaybackCmd_t, void *);
|
int (* Command) (/*Context_t*/void *, PlaybackCmd_t, void *);
|
||||||
char * uri;
|
char * uri;
|
||||||
off_t size;
|
|
||||||
unsigned char noprobe; /* hack: only minimal probing in av_find_stream_info */
|
unsigned char noprobe; /* hack: only minimal probing in av_find_stream_info */
|
||||||
|
unsigned long long readCount;
|
||||||
} PlaybackHandler_t;
|
} PlaybackHandler_t;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -724,6 +724,13 @@ bool cPlayback::isPlaying() {
|
|||||||
return player->playback->isPlaying;
|
return player->playback->isPlaying;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unsigned long long cPlayback::GetReadCount() {
|
||||||
|
if (player && player->playback) {
|
||||||
|
return player->playback->readCount;
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
#if 0
|
#if 0
|
||||||
bool cPlayback::IsPlaying(void) const
|
bool cPlayback::IsPlaying(void) const
|
||||||
{
|
{
|
||||||
|
@@ -49,6 +49,7 @@ class cPlayback
|
|||||||
void FindAllTeletextsubtitlePids(int *pids, unsigned int *numpidt, std::string *tlanguage);
|
void FindAllTeletextsubtitlePids(int *pids, unsigned int *numpidt, std::string *tlanguage);
|
||||||
void RequestAbort(void);
|
void RequestAbort(void);
|
||||||
bool isPlaying(void);
|
bool isPlaying(void);
|
||||||
|
unsigned long long GetReadCount(void);
|
||||||
#if 0
|
#if 0
|
||||||
void FindAllSubs(uint16_t *pids, unsigned short *supported, uint16_t *numpida, std::string *language);
|
void FindAllSubs(uint16_t *pids, unsigned short *supported, uint16_t *numpida, std::string *language);
|
||||||
bool SelectSubtitles(int pid);
|
bool SelectSubtitles(int pid);
|
||||||
|
Reference in New Issue
Block a user