Fixed issue in which DashChunkSource didn't make use of the most recent

manifest.
This commit is contained in:
Oliver Woodman 2015-09-28 12:22:54 +01:00
parent c3e0d34aa1
commit 42416b82db

View File

@ -302,12 +302,14 @@ public class DashChunkSource implements ChunkSource, Output {
@Override
public void enable(int track) {
enabledTrack = tracks.get(track);
processManifest(currentManifest);
if (enabledTrack.isAdaptive()) {
adaptiveFormatEvaluator.enable();
}
if (manifestFetcher != null) {
manifestFetcher.enable();
processManifest(manifestFetcher.getManifest());
} else {
processManifest(currentManifest);
}
}