omxvideodec: release frames with old PTS to avoid memory issue
authorAurélien Zanelli <aurelien.zanelli@parrot.com>
Fri, 30 May 2014 13:29:15 +0000 (15:29 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 4 Jun 2014 14:36:02 +0000 (16:36 +0200)
commitad969ffda34f671252d115fbb3293fae43f1b0e6
treeb6630a376d1e0fffbd0237aa44ec0374858b44b9
parent4c488d425d2dfb3dbb7225aa55b0425050f0531b
omxvideodec: release frames with old PTS to avoid memory issue

Interlaced stream could make the decoder use two input frames to produce
one output frame causing the gstvideodecoder frame list to grow.
Assuming the video decoder output frame in display order rather than in
decoding order, this commit add a way to release frames with PTS less
than current output frame.

https://bugzilla.gnome.org/show_bug.cgi?id=730995
omx/gstomxvideodec.c