diff options
author | Jacques Samain <jsamain+fdio@cisco.com> | 2017-07-25 15:32:54 +0200 |
---|---|---|
committer | Jacques Samain <jsamain+fdio@cisco.com> | 2017-07-25 15:32:54 +0200 |
commit | 0e275345e28c34f2c6b91a75f44ac93034ae477c (patch) | |
tree | 0b94ec17f395fce7ae1015200d45bd61ce0112a8 /Input/DASHReceiver.h | |
parent | ce4d018aa8185da0bbf5445eaf54d88700f1a381 (diff) |
Handling live MPDs with variable segments duration
Change-Id: I074d8863a9afb47815e47bf663b87e7f663890b9
Signed-off-by: Jacques Samain <jsamain+fdio@cisco.com>
Diffstat (limited to 'Input/DASHReceiver.h')
-rw-r--r-- | Input/DASHReceiver.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Input/DASHReceiver.h b/Input/DASHReceiver.h index ee2df388..a6db0382 100644 --- a/Input/DASHReceiver.h +++ b/Input/DASHReceiver.h @@ -57,7 +57,7 @@ public: input::MediaObject* GetSegment(uint32_t segmentNumber); input::MediaObject* GetInitSegment(); input::MediaObject* GetInitSegmentWithoutLock(); - input::MediaObject* FindInitSegment(int representation); + input::MediaObject* FindInitSegment(std::string representation); uint32_t GetPosition(); void SetPosition(uint32_t segmentNumber); void SetLooping(bool isLoopinp); @@ -86,7 +86,7 @@ private: float drop; bool withFeedBack; bool isBufferBased; - std::map<int, MediaObject*> initSegments; + std::map<std::string, MediaObject*> initSegments; libdash::framework::buffer::Buffer<MediaObject> *buffer; IDASHReceiverObserver *observer; libdash::framework::mpd::MPDWrapper *mpdWrapper; @@ -120,7 +120,7 @@ private: void NotifySegmentDownloaded(); void DownloadInitSegment(); void DownloadInitSegmentWithoutLock(); - bool InitSegmentExists(int rep); + bool InitSegmentExists(std::string rep); static void* DoBuffering(void *receiver); }; } |