From caaaffbb5dc266a9a749a29b05977ce76cc98dd9 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 9 Sep 2016 10:05:29 -0400 Subject: [PATCH] change sematics of pop to return the packet* instead of boolean. Free packets in clearQueue --- src/zm_packetqueue.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/zm_packetqueue.h b/src/zm_packetqueue.h index f142dba45..18f3410c2 100644 --- a/src/zm_packetqueue.h +++ b/src/zm_packetqueue.h @@ -34,12 +34,12 @@ public: zm_packetqueue(); virtual ~zm_packetqueue(); bool queuePacket( AVPacket* packet ); - bool popPacket( AVPacket* packet ); + AVPacket * popPacket( ); bool popVideoPacket(AVPacket* packet); bool popAudioPacket(AVPacket* packet); void clearQueue( ); private: - std::queue pktQueue; + std::queue pktQueue; };