From c8023eeb1e26fbe6d3b9970f0775c80a2e76f654 Mon Sep 17 00:00:00 2001 From: "leo.lu" Date: Tue, 11 Jul 2023 09:40:49 +0800 Subject: [PATCH] gstreamer: gst1-plugins-bad: Add gstjpegparse plugin to decodebin --- ...05-add-jpegparse-plugin-to-decodebin.patch | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 package/gstreamer1/gst1-plugins-bad/0005-add-jpegparse-plugin-to-decodebin.patch diff --git a/package/gstreamer1/gst1-plugins-bad/0005-add-jpegparse-plugin-to-decodebin.patch b/package/gstreamer1/gst1-plugins-bad/0005-add-jpegparse-plugin-to-decodebin.patch new file mode 100644 index 00000000..b2d4460d --- /dev/null +++ b/package/gstreamer1/gst1-plugins-bad/0005-add-jpegparse-plugin-to-decodebin.patch @@ -0,0 +1,36 @@ +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) "); +