timecodestamper: Require a non-0/1 framerate on the pad templates

We reject caps with other framerates as it's impossible to generate
timecodes unless we actually know a constant framerate. Reflect this
also in the pad template caps.
This commit is contained in:
Sebastian Dröge 2019-08-06 18:51:54 +03:00 committed by Sebastian Dröge
parent 2386385822
commit 5002efbf8d

View file

@ -87,14 +87,14 @@ static GstStaticPadTemplate gst_timecodestamper_src_template =
GST_STATIC_PAD_TEMPLATE ("src",
GST_PAD_SRC,
GST_PAD_ALWAYS,
GST_STATIC_CAPS ("video/x-raw")
GST_STATIC_CAPS ("video/x-raw, framerate=[1/2147483647, 2147483647/1]")
);
static GstStaticPadTemplate gst_timecodestamper_sink_template =
GST_STATIC_PAD_TEMPLATE ("sink",
GST_PAD_SINK,
GST_PAD_ALWAYS,
GST_STATIC_CAPS ("video/x-raw")
GST_STATIC_CAPS ("video/x-raw, framerate=[1/2147483647, 2147483647/1]")
);
static GstStaticPadTemplate gst_timecodestamper_ltc_template =