Commit 88a84500 authored by Steve Lhomme's avatar Steve Lhomme

libmatroska2: fix Haali's API after changing the segmentinfo links

git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/foundation_src@391 a6f86f6d-0131-4f8e-9e7b-e335508773d5
parent 0dff64fd
......@@ -1289,7 +1289,7 @@ int mkv_ReadFrame(MatroskaFile *File, int mask, unsigned int *track, ulonglong *
Elt = NULL;
}
MATROSKA_LinkClusterSegmentInfo((matroska_cluster*)File->CurrentCluster,File->SegmentInfo);
MATROSKA_LinkClusterReadSegmentInfo((matroska_cluster*)File->CurrentCluster,File->SegmentInfo,1);
File->ClusterContext.Context = &MATROSKA_ContextCluster;
if (EBML_ElementIsFiniteSize(File->CurrentCluster))
File->ClusterContext.EndPosition = EBML_ElementPositionEnd(File->CurrentCluster);
......@@ -1344,7 +1344,7 @@ int mkv_ReadFrame(MatroskaFile *File, int mask, unsigned int *track, ulonglong *
{
EBML_MasterAppend(File->CurrentCluster, Elt);
MATROSKA_LinkBlockWithReadTracks((matroska_block*)Elt,File->TrackList,1);
MATROSKA_LinkBlockSegmentInfo((matroska_block*)Elt,File->SegmentInfo);
MATROSKA_LinkBlockReadSegmentInfo((matroska_block*)Elt,File->SegmentInfo,1);
File->CurrentBlock = (matroska_block*)Elt;
}
}
......@@ -1369,7 +1369,7 @@ int mkv_ReadFrame(MatroskaFile *File, int mask, unsigned int *track, ulonglong *
{
EBML_MasterAppend(File->CurrentCluster, Elt);
MATROSKA_LinkBlockWithReadTracks((matroska_block*)Elt2,File->TrackList,1);
MATROSKA_LinkBlockSegmentInfo((matroska_block*)Elt2,File->SegmentInfo);
MATROSKA_LinkBlockReadSegmentInfo((matroska_block*)Elt2,File->SegmentInfo,1);
File->CurrentBlock = (matroska_block*)Elt2;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment