jpeg2000parse: use GST_INT in caps for profile

Negotiation failed with GST_UINT
This commit is contained in:
Aaron Boxer 2019-08-09 09:28:53 -04:00 committed by GStreamer Merge Bot
parent 1344d9f560
commit fae0664824

View file

@ -670,14 +670,14 @@ gst_jpeg2000_parse_handle_frame (GstBaseParse * parse,
"colorspace", G_TYPE_STRING, "colorspace", G_TYPE_STRING,
gst_jpeg2000_colorspace_to_string (colorspace), "sampling", gst_jpeg2000_colorspace_to_string (colorspace), "sampling",
G_TYPE_STRING, gst_jpeg2000_sampling_to_string (source_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) if (gst_jpeg2000_parse_is_broadcast (capabilities)
|| gst_jpeg2000_parse_is_imf (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); NULL);
if (gst_jpeg2000_parse_is_imf (capabilities)) { 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); NULL);
} }
} }