Setup mVideoStream and mVideoStreamId and set it in packet.
This commit is contained in:
parent
c61e6a8c56
commit
ac42aa2488
|
@ -1047,6 +1047,7 @@ int RemoteCameraHttp::PrimeCapture() {
|
|||
mode = SINGLE_IMAGE;
|
||||
buffer.clear();
|
||||
}
|
||||
get_VideoStream();
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -1088,6 +1089,7 @@ int RemoteCameraHttp::Capture(ZMPacket &packet) {
|
|||
Image *image = packet.image;
|
||||
packet.keyframe = 1;
|
||||
packet.codec_type = AVMEDIA_TYPE_VIDEO;
|
||||
packet.packet.stream_index = mVideoStreamId;
|
||||
|
||||
switch ( format ) {
|
||||
case JPEG :
|
||||
|
|
Loading…
Reference in New Issue