Default to null

This commit is contained in:
Reinhard Pointner 2017-06-05 03:05:53 +08:00
parent 26e816f92d
commit c881f6be3c
1 changed files with 1 additions and 1 deletions

View File

@ -328,7 +328,7 @@ public class MediaBindingBean {
String codec = getMediaInfo(StreamKind.Video, 0, "Encoded_Library_Name", "Encoded_Library/Name", "CodecID/Hint", "Format");
// get first token (e.g. DivX 5 => DivX)
return tokenize(codec).findFirst().get();
return tokenize(codec).findFirst().orElse(null);
}
@Define("ac")