Commit 954a783e authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf
Browse files

Fix crash while scanning a file with no tracks

parent 59dbcf3a
......@@ -162,6 +162,9 @@ public class Media implements Comparable<Media> {
}
private void extractTrackInfo(TrackInfo[] tracks) {
if (tracks == null)
return;
for (TrackInfo track : tracks) {
if (track.Type == TrackInfo.TYPE_VIDEO) {
mType = TYPE_VIDEO;
......
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