From c4cd1ce4fde363bd4e22416cff32e0a15447a53f Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Fri, 14 Aug 2015 11:43:18 -0300 Subject: [PATCH] videoparsers: enable accept-template flag Do a quick check with the pad template caps as it is enough. Users should have figured the appropriate full caps on a previous caps query https://bugzilla.gnome.org/show_bug.cgi?id=753623 --- gst/videoparsers/gstdiracparse.c | 1 + gst/videoparsers/gsth263parse.c | 1 + gst/videoparsers/gsth264parse.c | 1 + gst/videoparsers/gsth265parse.c | 1 + gst/videoparsers/gstmpeg4videoparse.c | 1 + gst/videoparsers/gstmpegvideoparse.c | 1 + gst/videoparsers/gstvc1parse.c | 1 + 7 files changed, 7 insertions(+) diff --git a/gst/videoparsers/gstdiracparse.c b/gst/videoparsers/gstdiracparse.c index 9307f10..f1ba133 100644 --- a/gst/videoparsers/gstdiracparse.c +++ b/gst/videoparsers/gstdiracparse.c @@ -138,6 +138,7 @@ gst_dirac_parse_init (GstDiracParse * diracparse) gst_base_parse_set_min_frame_size (GST_BASE_PARSE (diracparse), 13); gst_base_parse_set_pts_interpolation (GST_BASE_PARSE (diracparse), FALSE); GST_PAD_SET_ACCEPT_INTERSECT (GST_BASE_PARSE_SINK_PAD (diracparse)); + GST_PAD_SET_ACCEPT_TEMPLATE (GST_BASE_PARSE_SINK_PAD (diracparse)); } void diff --git a/gst/videoparsers/gsth263parse.c b/gst/videoparsers/gsth263parse.c index 9b12997..18f9bf5 100644 --- a/gst/videoparsers/gsth263parse.c +++ b/gst/videoparsers/gsth263parse.c @@ -97,6 +97,7 @@ static void gst_h263_parse_init (GstH263Parse * h263parse) { GST_PAD_SET_ACCEPT_INTERSECT (GST_BASE_PARSE_SINK_PAD (h263parse)); + GST_PAD_SET_ACCEPT_TEMPLATE (GST_BASE_PARSE_SINK_PAD (h263parse)); } static gboolean diff --git a/gst/videoparsers/gsth264parse.c b/gst/videoparsers/gsth264parse.c index d4745b1..5bbcc06 100644 --- a/gst/videoparsers/gsth264parse.c +++ b/gst/videoparsers/gsth264parse.c @@ -164,6 +164,7 @@ gst_h264_parse_init (GstH264Parse * h264parse) h264parse->frame_out = gst_adapter_new (); gst_base_parse_set_pts_interpolation (GST_BASE_PARSE (h264parse), FALSE); GST_PAD_SET_ACCEPT_INTERSECT (GST_BASE_PARSE_SINK_PAD (h264parse)); + GST_PAD_SET_ACCEPT_TEMPLATE (GST_BASE_PARSE_SINK_PAD (h264parse)); } diff --git a/gst/videoparsers/gsth265parse.c b/gst/videoparsers/gsth265parse.c index 10a99cb..3184b9b 100644 --- a/gst/videoparsers/gsth265parse.c +++ b/gst/videoparsers/gsth265parse.c @@ -141,6 +141,7 @@ gst_h265_parse_init (GstH265Parse * h265parse) h265parse->frame_out = gst_adapter_new (); gst_base_parse_set_pts_interpolation (GST_BASE_PARSE (h265parse), FALSE); GST_PAD_SET_ACCEPT_INTERSECT (GST_BASE_PARSE_SINK_PAD (h265parse)); + GST_PAD_SET_ACCEPT_TEMPLATE (GST_BASE_PARSE_SINK_PAD (h265parse)); } diff --git a/gst/videoparsers/gstmpeg4videoparse.c b/gst/videoparsers/gstmpeg4videoparse.c index 3188439..89d7979 100644 --- a/gst/videoparsers/gstmpeg4videoparse.c +++ b/gst/videoparsers/gstmpeg4videoparse.c @@ -187,6 +187,7 @@ gst_mpeg4vparse_init (GstMpeg4VParse * parse) gst_base_parse_set_pts_interpolation (GST_BASE_PARSE (parse), FALSE); GST_PAD_SET_ACCEPT_INTERSECT (GST_BASE_PARSE_SINK_PAD (parse)); + GST_PAD_SET_ACCEPT_TEMPLATE (GST_BASE_PARSE_SINK_PAD (parse)); } static void diff --git a/gst/videoparsers/gstmpegvideoparse.c b/gst/videoparsers/gstmpegvideoparse.c index bf166d0..e64224a 100644 --- a/gst/videoparsers/gstmpegvideoparse.c +++ b/gst/videoparsers/gstmpegvideoparse.c @@ -177,6 +177,7 @@ gst_mpegv_parse_init (GstMpegvParse * parse) gst_base_parse_set_pts_interpolation (GST_BASE_PARSE (parse), FALSE); GST_PAD_SET_ACCEPT_INTERSECT (GST_BASE_PARSE_SINK_PAD (parse)); + GST_PAD_SET_ACCEPT_TEMPLATE (GST_BASE_PARSE_SINK_PAD (parse)); } static void diff --git a/gst/videoparsers/gstvc1parse.c b/gst/videoparsers/gstvc1parse.c index 7583c77..44b2c75 100644 --- a/gst/videoparsers/gstvc1parse.c +++ b/gst/videoparsers/gstvc1parse.c @@ -252,6 +252,7 @@ gst_vc1_parse_init (GstVC1Parse * vc1parse) gst_vc1_parse_reset (vc1parse); GST_PAD_SET_ACCEPT_INTERSECT (GST_BASE_PARSE_SINK_PAD (vc1parse)); + GST_PAD_SET_ACCEPT_TEMPLATE (GST_BASE_PARSE_SINK_PAD (vc1parse)); } static void -- 2.7.4