From fe22b746cfbe9c6fbfbae3fe8a8a5539c79caac2 Mon Sep 17 00:00:00 2001
|
From: Jeffy Chen <jeffy.chen@rock-chips.com>
|
Date: Tue, 17 Nov 2020 11:51:40 +0800
|
Subject: [PATCH 12/31] gstjpegparse: Allow parsebin to use it for autoplugging
|
|
Add "Codec" to Klass and increase rank.
|
|
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
|
---
|
gst/jpegformat/gstjpegparse.c | 4 ++--
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
diff --git a/gst/jpegformat/gstjpegparse.c b/gst/jpegformat/gstjpegparse.c
|
index 5231879..7587c2b 100644
|
--- a/gst/jpegformat/gstjpegparse.c
|
+++ b/gst/jpegformat/gstjpegparse.c
|
@@ -89,7 +89,7 @@ static GstFlowReturn gst_jpeg_parse_pre_push_frame (GstBaseParse * bparse,
|
|
#define gst_jpeg_parse_parent_class parent_class
|
G_DEFINE_TYPE (GstJpegParse, gst_jpeg_parse, GST_TYPE_BASE_PARSE);
|
-GST_ELEMENT_REGISTER_DEFINE (jpegparse, "jpegparse", GST_RANK_NONE,
|
+GST_ELEMENT_REGISTER_DEFINE (jpegparse, "jpegparse", GST_RANK_SECONDARY,
|
GST_TYPE_JPEG_PARSE);
|
|
static void
|
@@ -115,7 +115,7 @@ gst_jpeg_parse_class_init (GstJpegParseClass * klass)
|
|
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) <arnout@mind.be>");
|
|
--
|
2.20.1
|