From 76aef7237b9a2f465e4d3d7ef4250eb7a087866c Mon Sep 17 00:00:00 2001 From: Marten Richter Date: Mon, 10 Sep 2012 22:11:04 +0200 Subject: [PATCH] switch to vector in mediapackets for videoomx --- videoomx.cc | 5 ++--- videoomx.h | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/videoomx.cc b/videoomx.cc index 63374e6..55ee466 100644 --- a/videoomx.cc +++ b/videoomx.cc @@ -2310,12 +2310,11 @@ void VideoOMX::PrepareMediaSample(const MediaPacketList& mplist,UINT samplepos) UINT VideoOMX::DeliverMediaSample(UCHAR* buffer, UINT *samplepos) { int consumed=0; - while (mediapackets.size()) { - MediaPacket mediapacket=mediapackets.front(); + while (consumed mediapackets; }; #endif -- 2.39.5