pinossink: track the fd indices we sent

Track the fd indices we sent to Pinos and free the associated buffer
when Pinos sends us release-fd. Only do this for non tempfile fds, as we
made the tmpfile ones ourselves and we're not going to reuse them.
This commit is contained in:
Wim Taymans 2015-12-03 15:59:27 +01:00
parent 4322ddaf0f
commit b6f10f508d
3 changed files with 49 additions and 7 deletions

View file

@ -62,6 +62,9 @@ struct _GstPinosSink {
PinosContext *ctx;
PinosStream *stream;
GstAllocator *allocator;
guint32 id_counter;
GHashTable *fdids;
};
struct _GstPinosSinkClass {