From b92e42e68592f84320f6189a7bb63afd7fc160d7 Mon Sep 17 00:00:00 2001 From: Oleg Kisselef Date: Fri, 24 Apr 2015 15:42:08 +0600 Subject: [PATCH] yet another gpac fix applied --- src/gpacmp4/media.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gpacmp4/media.c b/src/gpacmp4/media.c index a64ffa55..8c0222a6 100644 --- a/src/gpacmp4/media.c +++ b/src/gpacmp4/media.c @@ -333,10 +333,12 @@ GF_Err Media_GetSample(GF_MediaBox *mdia, u32 sampleNumber, GF_ISOSample **samp, //divided into the original and the edition files if (mdia->mediaTrack->moov->mov->openMode == GF_ISOM_OPEN_READ) { //same as last call in read mode - if (!mdia->information->dataHandler || (mdia->information->dataEntryIndex != dataRefIndex)) { + if (!mdia->information->dataHandler) { e = gf_isom_datamap_open(mdia, dataRefIndex, isEdited); if (e) return e; } + if (mdia->information->dataEntryIndex != dataRefIndex) + mdia->information->dataEntryIndex = dataRefIndex; } else { e = gf_isom_datamap_open(mdia, dataRefIndex, isEdited); if (e) return e;