gst: add keepalive-time property

Add a property to periodically send the last buffer to keep the
stream alive. Useful for sparse streams that need to keep the
encoder busy every once and a while.
This commit is contained in:
Wim Taymans 2020-07-14 13:54:21 +02:00
parent f28ca843a6
commit 993aa89030
2 changed files with 47 additions and 11 deletions

View file

@ -66,6 +66,7 @@ struct _GstPipeWireSrc {
gint max_buffers;
int fd;
gboolean resend_last;
gint keepalive_time;
gboolean negotiated;
gboolean flushing;