mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 15:02:58 +02:00
libeplayer3/input: allow access to AVFormatContext
This commit is contained in:
@@ -47,6 +47,8 @@ class Input
|
||||
friend int interrupt_cb(void *arg);
|
||||
|
||||
private:
|
||||
OpenThreads::Mutex mutex;
|
||||
|
||||
Track *videoTrack;
|
||||
Track *audioTrack;
|
||||
Track *subtitleTrack;
|
||||
@@ -81,6 +83,8 @@ class Input
|
||||
bool SwitchVideo(Track *track);
|
||||
bool GetMetadata(std::vector<std::string> &keys, std::vector<std::string> &values);
|
||||
bool GetReadCount(uint64_t &readcount);
|
||||
AVFormatContext *GetAVFormatContext();
|
||||
void ReleaseAVFormatContext();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@@ -114,6 +114,9 @@ class Player {
|
||||
void RequestAbort();
|
||||
bool GetChapters(std::vector<int> &positions, std::vector<std::string> &titles);
|
||||
|
||||
AVFormatContext *GetAVFormatContext() { return input.GetAVFormatContext(); }
|
||||
void ReleaseAVFormatContext() { input.ReleaseAVFormatContext(); }
|
||||
|
||||
Player();
|
||||
};
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user