mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
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
This commit is contained in:
parent
b3418759d9
commit
c4cd1ce4fd
7 changed files with 7 additions and 0 deletions
|
@ -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_min_frame_size (GST_BASE_PARSE (diracparse), 13);
|
||||||
gst_base_parse_set_pts_interpolation (GST_BASE_PARSE (diracparse), FALSE);
|
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_INTERSECT (GST_BASE_PARSE_SINK_PAD (diracparse));
|
||||||
|
GST_PAD_SET_ACCEPT_TEMPLATE (GST_BASE_PARSE_SINK_PAD (diracparse));
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -97,6 +97,7 @@ static void
|
||||||
gst_h263_parse_init (GstH263Parse * h263parse)
|
gst_h263_parse_init (GstH263Parse * h263parse)
|
||||||
{
|
{
|
||||||
GST_PAD_SET_ACCEPT_INTERSECT (GST_BASE_PARSE_SINK_PAD (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
|
static gboolean
|
||||||
|
|
|
@ -164,6 +164,7 @@ gst_h264_parse_init (GstH264Parse * h264parse)
|
||||||
h264parse->frame_out = gst_adapter_new ();
|
h264parse->frame_out = gst_adapter_new ();
|
||||||
gst_base_parse_set_pts_interpolation (GST_BASE_PARSE (h264parse), FALSE);
|
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_INTERSECT (GST_BASE_PARSE_SINK_PAD (h264parse));
|
||||||
|
GST_PAD_SET_ACCEPT_TEMPLATE (GST_BASE_PARSE_SINK_PAD (h264parse));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -141,6 +141,7 @@ gst_h265_parse_init (GstH265Parse * h265parse)
|
||||||
h265parse->frame_out = gst_adapter_new ();
|
h265parse->frame_out = gst_adapter_new ();
|
||||||
gst_base_parse_set_pts_interpolation (GST_BASE_PARSE (h265parse), FALSE);
|
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_INTERSECT (GST_BASE_PARSE_SINK_PAD (h265parse));
|
||||||
|
GST_PAD_SET_ACCEPT_TEMPLATE (GST_BASE_PARSE_SINK_PAD (h265parse));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -187,6 +187,7 @@ gst_mpeg4vparse_init (GstMpeg4VParse * parse)
|
||||||
|
|
||||||
gst_base_parse_set_pts_interpolation (GST_BASE_PARSE (parse), FALSE);
|
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_INTERSECT (GST_BASE_PARSE_SINK_PAD (parse));
|
||||||
|
GST_PAD_SET_ACCEPT_TEMPLATE (GST_BASE_PARSE_SINK_PAD (parse));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
@ -177,6 +177,7 @@ gst_mpegv_parse_init (GstMpegvParse * parse)
|
||||||
|
|
||||||
gst_base_parse_set_pts_interpolation (GST_BASE_PARSE (parse), FALSE);
|
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_INTERSECT (GST_BASE_PARSE_SINK_PAD (parse));
|
||||||
|
GST_PAD_SET_ACCEPT_TEMPLATE (GST_BASE_PARSE_SINK_PAD (parse));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
@ -252,6 +252,7 @@ gst_vc1_parse_init (GstVC1Parse * vc1parse)
|
||||||
|
|
||||||
gst_vc1_parse_reset (vc1parse);
|
gst_vc1_parse_reset (vc1parse);
|
||||||
GST_PAD_SET_ACCEPT_INTERSECT (GST_BASE_PARSE_SINK_PAD (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
|
static void
|
||||||
|
|
Loading…
Reference in a new issue