Skip to content

Commit 294b1c7

Browse files
Add bytes_sent
1 parent f4383fc commit 294b1c7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/zm_stream.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ class StreamBase {
156156
AVPixelFormat mJpegPixelFormat; // Not what the codec context is configured to use, but what the mjpegswscontext is configured as input
157157
AVCodecContext *mJpegCodecContext;
158158
SwsContext *mJpegSwsContext;
159+
int bytes_sent;
159160

160161
protected:
161162
bool loadMonitor(int monitor_id);
@@ -203,7 +204,8 @@ class StreamBase {
203204
temp_img_buffer(nullptr),
204205
temp_img_buffer_size(0),
205206
mJpegCodecContext(nullptr),
206-
mJpegSwsContext(nullptr)
207+
mJpegSwsContext(nullptr),
208+
bytes_sent(0)
207209
{
208210
memset(&loc_sock_path, 0, sizeof(loc_sock_path));
209211
memset(&loc_addr, 0, sizeof(loc_addr));

0 commit comments

Comments
 (0)