diff --git a/src/zm_camera.cpp b/src/zm_camera.cpp index d75a03d27..beb45eedd 100644 --- a/src/zm_camera.cpp +++ b/src/zm_camera.cpp @@ -109,6 +109,7 @@ AVStream *Camera::get_VideoStream() { } else { Error("Can't create video stream"); } + mVideoStreamId = mVideoStream->index; } return mVideoStream; }