Bug 1056288 - Fix thinko in OggPacketQueue. r=cpearce.
authorNathan Froyd <froydnj@gmail.com>
Wed, 20 Aug 2014 12:44:00 -0700
changeset 200705 b3752aaa0900f77d2428e8b21ed6f4c1c1b6deee
parent 200704 18b0e0c795d4da1dbc413a4cd05d359c469ba271
child 200706 854dd3b3be756d504de67765fb30492a82bf8181
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewerscpearce
bugs1056288
milestone34.0a1
Bug 1056288 - Fix thinko in OggPacketQueue. r=cpearce.
content/media/ogg/OggCodecState.h
--- a/content/media/ogg/OggCodecState.h
+++ b/content/media/ogg/OggCodecState.h
@@ -64,17 +64,17 @@ class OggPacketQueue : private nsDeque {
 public:
   OggPacketQueue() : nsDeque(new OggPacketDeallocator()) {}
   ~OggPacketQueue() { Erase(); }
   bool IsEmpty() { return nsDeque::GetSize() == 0; }
   void Append(ogg_packet* aPacket);
   ogg_packet* PopFront() { return static_cast<ogg_packet*>(nsDeque::PopFront()); }
   ogg_packet* PeekFront() { return static_cast<ogg_packet*>(nsDeque::PeekFront()); }
   void PushFront(ogg_packet* aPacket) { nsDeque::PushFront(aPacket); }
-  void PushBack(ogg_packet* aPacket) { nsDeque::PushFront(aPacket); }
+  void PushBack(ogg_packet* aPacket) { nsDeque::Push(aPacket); }
   void Erase() { nsDeque::Erase(); }
 };
 
 // Encapsulates the data required for decoding an ogg bitstream and for
 // converting granulepos to timestamps.
 class OggCodecState {
 public:
   typedef mozilla::MetadataTags MetadataTags;