From fae066482476197c41bc22ebfdc830aa6e514f91 Mon Sep 17 00:00:00 2001 From: Aaron Boxer Date: Fri, 9 Aug 2019 09:28:53 -0400 Subject: [PATCH] jpeg2000parse: use GST_INT in caps for profile Negotiation failed with GST_UINT --- gst/videoparsers/gstjpeg2000parse.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gst/videoparsers/gstjpeg2000parse.c b/gst/videoparsers/gstjpeg2000parse.c index 33757a3e55..4b00158cd6 100644 --- a/gst/videoparsers/gstjpeg2000parse.c +++ b/gst/videoparsers/gstjpeg2000parse.c @@ -670,14 +670,14 @@ gst_jpeg2000_parse_handle_frame (GstBaseParse * parse, "colorspace", G_TYPE_STRING, gst_jpeg2000_colorspace_to_string (colorspace), "sampling", G_TYPE_STRING, gst_jpeg2000_sampling_to_string (source_sampling), - "profile", G_TYPE_UINT, profile, "parsed", G_TYPE_BOOLEAN, TRUE, NULL); + "profile", G_TYPE_INT, profile, "parsed", G_TYPE_BOOLEAN, TRUE, NULL); if (gst_jpeg2000_parse_is_broadcast (capabilities) || gst_jpeg2000_parse_is_imf (capabilities)) { - gst_caps_set_simple (src_caps, "main-level", G_TYPE_UINT, main_level, + gst_caps_set_simple (src_caps, "main-level", G_TYPE_INT, main_level, NULL); if (gst_jpeg2000_parse_is_imf (capabilities)) { - gst_caps_set_simple (src_caps, "sub-level", G_TYPE_UINT, sub_level, + gst_caps_set_simple (src_caps, "sub-level", G_TYPE_INT, sub_level, NULL); } }