From 5002efbf8d454cf066b082edfb87cf6e094a2767 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 6 Aug 2019 18:51:54 +0300 Subject: [PATCH] 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. --- gst/timecode/gsttimecodestamper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/timecode/gsttimecodestamper.c b/gst/timecode/gsttimecodestamper.c index cd357f4e79..c879717970 100644 --- a/gst/timecode/gsttimecodestamper.c +++ b/gst/timecode/gsttimecodestamper.c @@ -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 =