Allow decodebin to use jpegparse plugin. Signed-off-by: Leo Lu diff -purN a/gst/jpegformat/gstjpegformat.c b/gst/jpegformat/gstjpegformat.c --- a/gst/jpegformat/gstjpegformat.c 2021-09-09 03:03:40.923254300 +0800 +++ b/gst/jpegformat/gstjpegformat.c 2023-07-10 21:37:39.360269130 +0800 @@ -30,7 +30,7 @@ static gboolean plugin_init (GstPlugin * plugin) { - if (!gst_element_register (plugin, "jpegparse", GST_RANK_NONE, + if (!gst_element_register (plugin, "jpegparse", GST_RANK_SECONDARY, GST_TYPE_JPEG_PARSE)) return FALSE; if (!gst_element_register (plugin, "jifmux", GST_RANK_SECONDARY, diff -purN a/gst/jpegformat/gstjpegparse.c b/gst/jpegformat/gstjpegparse.c --- a/gst/jpegformat/gstjpegparse.c 2021-09-09 03:03:40.923254300 +0800 +++ b/gst/jpegformat/gstjpegparse.c 2023-07-10 21:38:08.628411201 +0800 @@ -90,6 +90,7 @@ static GstFlowReturn gst_jpeg_parse_pre_ #define gst_jpeg_parse_parent_class parent_class G_DEFINE_TYPE (GstJpegParse, gst_jpeg_parse, GST_TYPE_BASE_PARSE); + static void gst_jpeg_parse_class_init (GstJpegParseClass * klass) { @@ -113,7 +114,7 @@ gst_jpeg_parse_class_init (GstJpegParseC gst_element_class_set_static_metadata (gstelement_class, "JPEG stream parser", - "Video/Parser", + "Codec/Parser/Video/Image", "Parse JPEG images into single-frame buffers", "Arnout Vandecappelle (Essensium/Mind) ");