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,12 +244,10 @@ 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);
}
} }
} }

Loading…
Cancel
Save