Commit 60cf86aa authored by Geoffrey Métais's avatar Geoffrey Métais

Prevent NPE in MediaPlayer getEncodingFlags

parent 23b88f5a
......@@ -417,6 +417,8 @@ public class MediaPlayer extends VLCObject<MediaPlayer.Event> {
}
private long getEncodingFlags(int encodings[]) {
if (encodings == null)
return 0;
long encodingFlags = 0;
for (int encoding : encodings) {
if (isEncoded(encoding))
......
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