videotestsrc: add a 'max-duration' property
Submitted by Swen Kooij
Link to original bug (#748105)
Description
Created attachment 301900
videotestsrc: add a 'max-duration' property
This patch adds a new property to the videotestsrc
element that allows you to set the maximum duration. After the specified time (in nano seconds) the videotestsrc
will push EOS onto it's src pad.
There are other ways to do this of course, but I found this the most accurate method. So, I am not entirely sure this change is an acceptable one.
Tested on Linux/Debian x64 (patch file was generated on Windows). Patch is against master.
Patch 301900, "videotestsrc: add a 'max-duration' property":
0001-videotestsrc-added-max-duration-property.patch