giosrc: Add support for growing source files
authorThibault Saunier <tsaunier@igalia.com>
Thu, 19 Nov 2020 22:17:18 +0000 (19:17 -0300)
committerThibault Saunier <tsaunier@igalia.com>
Tue, 8 Dec 2020 15:14:58 +0000 (12:14 -0300)
commitf1f966d987434e1a294b92bc97c374606c68695b
treebd6c67b9d098f33848d4113fc6988f7a26705d92
parenta4ba86822552167ad89b4f8526891d872c83a2ce
giosrc: Add support for growing source files

Add a way for applications to specify that the underlying file is
growing which implies that the source won't EOS when reaching the end
of the file but instead start monitoring it and start reading it again
whenever a change is detected.

Also add a validate test to check the behavior

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/937>
docs/plugins/gst_plugins_cache.json
gst/gio/gstgio.h
gst/gio/gstgiobasesrc.c
gst/gio/gstgiobasesrc.h
gst/gio/gstgiosrc.c
gst/gio/gstgiosrc.h
tests/validate/giosrc/read-growing-file.validatetest [new file with mode: 0644]
tests/validate/giosrc/read-growing-file/flow-expectations/log-filesink-sink-expected [new file with mode: 0644]
tests/validate/giosrc/read-growing-file/flow-expectations/log-growing-file-sink-sink-expected [new file with mode: 0644]
tests/validate/meson.build