Fix NPE in internalStop
This commit is contained in:
parent
cd5172613e
commit
3c4ef05a48
|
@ -358,6 +358,7 @@ public class MergedFfmpegHlsDownload extends AbstractHlsDownload {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ffmpeg != null) {
|
||||||
try {
|
try {
|
||||||
boolean waitFor = ffmpeg.waitFor(5, TimeUnit.MINUTES);
|
boolean waitFor = ffmpeg.waitFor(5, TimeUnit.MINUTES);
|
||||||
if (!waitFor && ffmpeg.isAlive()) {
|
if (!waitFor && ffmpeg.isAlive()) {
|
||||||
|
@ -370,6 +371,7 @@ public class MergedFfmpegHlsDownload extends AbstractHlsDownload {
|
||||||
Thread.currentThread().interrupt();
|
Thread.currentThread().interrupt();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private class SegmentDownload implements Callable<byte[]> {
|
private class SegmentDownload implements Callable<byte[]> {
|
||||||
private URL url;
|
private URL url;
|
||||||
|
|
Loading…
Reference in New Issue