Commit 752a59ad authored by Geoffrey Métais's avatar Geoffrey Métais

Revert "New constructor for MediaWrapper"

This reverts commit bdf35efd.
parent ecc40286
......@@ -100,19 +100,18 @@ public class MediaWrapper implements Parcelable {
}
private void init(Media media) {
mType = TYPE_ALL;
if (media != null) {
mLength = media.getDuration();
if (media.isParsed()) {
mLength = media.getDuration();
for (int i = 0; i < media.getTrackCount(); ++i) {
final Media.Track track = media.getTrack(i);
if (track == null)
continue;
if (track.type == Media.Track.Type.Video) {
final VideoTrack videoTrack = (VideoTrack) track;
final Media.VideoTrack videoTrack = (VideoTrack) track;
mType = TYPE_VIDEO;
mWidth = videoTrack.width;
mHeight = videoTrack.height;
......
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