Remove connection flag on sample writing

Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
camera2
Leo Ma 9 years ago
parent 61fd978563
commit 45b58145c7

@ -244,14 +244,12 @@ public class SrsFlvMuxer {
)); ));
} }
if (connected) {
if (VIDEO_TRACK == trackIndex) { if (VIDEO_TRACK == trackIndex) {
flv.writeVideoSample(byteBuf, bufferInfo); flv.writeVideoSample(byteBuf, bufferInfo);
} else { } else {
flv.writeAudioSample(byteBuf, bufferInfo); flv.writeAudioSample(byteBuf, bufferInfo);
} }
} }
}
/** /**
* print the size of bytes in bb * print the size of bytes in bb

Loading…
Cancel
Save