This commit is contained in:
gac-S_Changer
2018-07-06 09:56:19 +02:00
parent 4371d9c6d8
commit 4c38bcba7c
34 changed files with 1820 additions and 968 deletions

View File

@@ -35,9 +35,9 @@ public class MjpegSource2 extends SourceBase {
super.doInitialize();
URL aux = new URL(url);
stream = aux.openStream();
// if (!stream.markSupported()) {
if (!stream.markSupported()) {
stream = new BufferedInputStream(stream);
// }
}
}
Thread monitoredThread;
@@ -102,7 +102,7 @@ public class MjpegSource2 extends SourceBase {
if (endOfFrame >= 0) {
stream.reset();
stream.skip(startOfFrame);
int length = endOfFrame - END_OF_FRAME.length;
int length = endOfFrame ;//- END_OF_FRAME.length ;
byte[] data = new byte[length];
stream.read(data, 0, length);
return data;