Commit 33e3a60e authored by Petri Hintukainen's avatar Petri Hintukainen

BDLocator: log parsing errors

parent 08740117
......@@ -27,11 +27,18 @@ import org.videolan.BDJUtil;
public class BDLocator extends Locator {
public BDLocator(String url) throws InvalidLocatorException {
try {
if (!url.startsWith("bd://"))
throw new InvalidLocatorException();
String str = url.substring(5);
if (!parseJar(str) && !parseSound(str) && !parsePlaylist(str))
throw new InvalidLocatorException();
} catch (InvalidLocatorException e) {
System.err.println("Invalid locator: " + url);
throw e;
public BDLocator(String disc, int titleNum, int playList) throws InvalidLocatorException {
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