]> git.sesse.net Git - vlc/commit
omxil: Allocate the sentinel buffer dynamically
authorMartin Storsjö <martin@martin.st>
Fri, 13 Apr 2012 15:01:20 +0000 (18:01 +0300)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 13 Apr 2012 15:10:57 +0000 (17:10 +0200)
commit010c77bdc3f80b44068bcb0ec9a96f36413baab9
tree5f12961ce3d28595dc2ced144b28cbc3992f29aa
parent59997ad65b64e43f418464c37373b9b57cf1f5f9
omxil: Allocate the sentinel buffer dynamically

This avoids issues if there's more than one sentinel added
to a FIFO at the same time, since the FIFO is built as a
linked list.

Also use a custom buffer flag to mark sentinel buffers, to
avoid issues if a codec would set the EOS flag on returned
input buffers.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/codec/omxil/omxil.c
modules/codec/omxil/omxil.h