mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
jpeg2000parse: use GST_INT in caps for profile
Negotiation failed with GST_UINT
This commit is contained in:
parent
1344d9f560
commit
fae0664824
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue