Commit fb43e1bd authored by Petri Hintukainen's avatar Petri Hintukainen

Reset currently playing locator when playback changes

parent 190d5837
......@@ -72,6 +72,7 @@ public class Handler extends BDHandler {
synchronized (this) {
try {
locator = new BDLocator(source.getLocator().toExternalForm());
currentLocator = null;
} catch (org.davic.net.InvalidLocatorException e) {
throw new IncompatibleSourceException();
}
......@@ -340,6 +341,7 @@ public class Handler extends BDHandler {
if (pi == null)
throw new InvalidPlayListException();
this.locator = locator;
this.currentLocator = null;
baseMediaTime = 0;
if (state == Prefetched)
doPrefetch();
......
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