This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user