Commit f75bde89 authored by Felix Paul Kühne's avatar Felix Paul Kühne

file parser: make sure a file is a movie before defining it as clip

parent 92f0e4ee
......@@ -126,10 +126,8 @@
}
[file setTracks:tracksSet];
if (mediaHasVideo) {
if ([[_media length] intValue] > 600000) // 10min
file.type = kMLFileTypeMovie;
else
if (mediaHasVideo && file.isMovie) {
if ([[_media length] intValue] < 600000) // 10min
file.type = kMLFileTypeClip;
}
[file setDuration:[[_media length] numberValue]];
......
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