Commit 2b13ca09 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Return length value of 0 when no media

parent 5570dc22
......@@ -1898,7 +1898,7 @@ public class PlaybackService extends MediaBrowserServiceCompat implements IVLCVo
@MainThread
public long getLength() {
return mMediaPlayer.getLength();
return hasMedia() ? mMediaPlayer.getLength() : 0;
}
/**
......
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