Skip to content

Commit

Permalink
Reinstate createTrack in VUParser
Browse files Browse the repository at this point in the history
The method createTrack was removed from the VUParser class
which made MediaPlayer creating incorrect track causing error.
Now VUParser overrides createTrack method returning correct
track and preventing error.
  • Loading branch information
Eric Johansson authored and Jimmy Dahlqvist committed Aug 24, 2015
1 parent 0e2485d commit 521f520
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3743,7 +3743,7 @@ public boolean canParse() {
return false;
}

private IsoTrack createTrack() {
protected IsoTrack createTrack() {
return new IsoTrack();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -850,4 +850,9 @@ public AccessUnit dequeueAccessUnit(boolean readFragmented) {
return accessUnit;
}
}

@Override
public IsoTrack createTrack() {
return new VUIsoTrack();
}
}

0 comments on commit 521f520

Please sign in to comment.