From 59b01601446f5c34dd5b9e7aec48338857c09b9a Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Mon, 13 Aug 2018 10:01:16 -0400 Subject: [PATCH] use ++it instead of it++ --- src/zm_packetqueue.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/zm_packetqueue.cpp b/src/zm_packetqueue.cpp index 8f36e0cd7..23c8530fa 100644 --- a/src/zm_packetqueue.cpp +++ b/src/zm_packetqueue.cpp @@ -97,7 +97,7 @@ ZMPacket* zm_packetqueue::popPacket( ) { ZMPacket *packet = pktQueue.front(); if ( *analysis_it == packet ) - analysis_it ++; + ++analysis_it; pktQueue.pop_front(); if ( packet->codec_type == AVMEDIA_TYPE_VIDEO ) { @@ -164,7 +164,7 @@ unsigned int zm_packetqueue::clearQueue( unsigned int frames_to_keep, int stream } if ( it != pktQueue.rend() ) { // We want to keep this packet, so advance to the next - it ++; + ++it; packets_to_delete--; } int delete_count = 0;