libeplayer3/input: allow access to AVFormatContext

Origin commit data
------------------
Branch: master
Commit: 56ece5b5ea
Author: martii <m4rtii@gmx.de>
Date: 2014-05-29 (Thu, 29 May 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
martii
2014-05-29 21:57:38 +02:00
parent 68034984bb
commit f8b460fc98
6 changed files with 38 additions and 4 deletions

View File

@@ -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

View File

@@ -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