We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4383fc commit 294b1c7Copy full SHA for 294b1c7
src/zm_stream.h
@@ -156,6 +156,7 @@ class StreamBase {
156
AVPixelFormat mJpegPixelFormat; // Not what the codec context is configured to use, but what the mjpegswscontext is configured as input
157
AVCodecContext *mJpegCodecContext;
158
SwsContext *mJpegSwsContext;
159
+ int bytes_sent;
160
161
protected:
162
bool loadMonitor(int monitor_id);
@@ -203,7 +204,8 @@ class StreamBase {
203
204
temp_img_buffer(nullptr),
205
temp_img_buffer_size(0),
206
mJpegCodecContext(nullptr),
- mJpegSwsContext(nullptr)
207
+ mJpegSwsContext(nullptr),
208
+ bytes_sent(0)
209
{
210
memset(&loc_sock_path, 0, sizeof(loc_sock_path));
211
memset(&loc_addr, 0, sizeof(loc_addr));
0 commit comments