change sematics of pop to return the packet* instead of boolean. Free packets in clearQueue

This commit is contained in:
Isaac Connor 2016-09-09 10:05:29 -04:00
parent c6607ea5fe
commit caaaffbb5d
1 changed files with 2 additions and 2 deletions

View File

@ -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<AVPacket> pktQueue;
std::queue<AVPacket *> pktQueue;
};