mxfjpeg2000: Fix caps

There is no fields field anymore.
This commit is contained in:
Sebastian Dröge 2015-10-21 01:21:37 +03:00
parent 9c9dd9d369
commit d388655756

View file

@ -221,7 +221,7 @@ mxf_jpeg2000_create_caps (MXFMetadataTimelineTrack * track, GstTagList ** tags,
/* TODO: What about other field values? */ /* TODO: What about other field values? */
caps = caps =
gst_caps_new_simple ("image/x-jpc", "fields", G_TYPE_INT, 1, "colorspace", gst_caps_new_simple ("image/x-jpc", "colorspace",
G_TYPE_STRING, colorspace, NULL); G_TYPE_STRING, colorspace, NULL);
if (p) { if (p) {
mxf_metadata_generic_picture_essence_descriptor_set_caps (p, caps); mxf_metadata_generic_picture_essence_descriptor_set_caps (p, caps);
@ -360,7 +360,7 @@ mxf_jpeg2000_init (void)
mxf_jpeg2000_essence_element_writer.pad_template = mxf_jpeg2000_essence_element_writer.pad_template =
gst_pad_template_new ("jpeg2000_video_sink_%u", GST_PAD_SINK, gst_pad_template_new ("jpeg2000_video_sink_%u", GST_PAD_SINK,
GST_PAD_REQUEST, GST_PAD_REQUEST,
gst_caps_from_string ("image/x-jpc, fields = 1, width = " gst_caps_from_string ("image/x-jpc, width = "
GST_VIDEO_SIZE_RANGE ", height = " GST_VIDEO_SIZE_RANGE GST_VIDEO_SIZE_RANGE ", height = " GST_VIDEO_SIZE_RANGE
", framerate = " GST_VIDEO_FPS_RANGE ", framerate = " GST_VIDEO_FPS_RANGE
", colorspace = (string) { \"sRGB\", \"sYUV\" }")); ", colorspace = (string) { \"sRGB\", \"sYUV\" }"));