Segment::GetCluster returns CuePoint too
Change-Id: Id1b865a9efdcee6b6ef68d4fb323da50f1942f2a
This commit is contained in:
@@ -2556,13 +2556,18 @@ void Segment::GetCluster(
|
||||
long long time_ns,
|
||||
Track* pTrack,
|
||||
Cluster*& pCluster,
|
||||
const BlockEntry*& pBlockEntry)
|
||||
const BlockEntry*& pBlockEntry,
|
||||
const CuePoint*& pCP,
|
||||
const CuePoint::TrackPosition*& pTP)
|
||||
{
|
||||
assert(pTrack);
|
||||
|
||||
if (SearchCues(time_ns, pTrack, pCluster, pBlockEntry))
|
||||
if (SearchCues(time_ns, pTrack, pCluster, pBlockEntry, pCP, pTP))
|
||||
return;
|
||||
|
||||
pCP = NULL;
|
||||
pTP = NULL;
|
||||
|
||||
if ((m_clusters == NULL) || (m_clusterCount <= 0))
|
||||
{
|
||||
pCluster = &m_eos;
|
||||
@@ -2719,7 +2724,9 @@ bool Segment::SearchCues(
|
||||
long long time_ns,
|
||||
Track* pTrack,
|
||||
Cluster*& pCluster,
|
||||
const BlockEntry*& pBlockEntry)
|
||||
const BlockEntry*& pBlockEntry,
|
||||
const CuePoint*& pCP,
|
||||
const CuePoint::TrackPosition*& pTP)
|
||||
{
|
||||
if (pTrack->GetType() != 1) //not video
|
||||
return false; //TODO: for now, just handle video stream
|
||||
@@ -2727,9 +2734,6 @@ bool Segment::SearchCues(
|
||||
if (m_pCues == NULL)
|
||||
return false;
|
||||
|
||||
const CuePoint* pCP;
|
||||
const CuePoint::TrackPosition* pTP;
|
||||
|
||||
if (!m_pCues->Find(time_ns, pTrack, pCP, pTP))
|
||||
return false; //weird
|
||||
|
||||
|
||||
Reference in New Issue
Block a user