From d38865575659b8f99f05f9fffd4b0915c6a6101b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 21 Oct 2015 01:21:37 +0300 Subject: [PATCH] mxfjpeg2000: Fix caps There is no fields field anymore. --- gst/mxf/mxfjpeg2000.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/mxf/mxfjpeg2000.c b/gst/mxf/mxfjpeg2000.c index 1679279d27..17daf7d95a 100644 --- a/gst/mxf/mxfjpeg2000.c +++ b/gst/mxf/mxfjpeg2000.c @@ -221,7 +221,7 @@ mxf_jpeg2000_create_caps (MXFMetadataTimelineTrack * track, GstTagList ** tags, /* TODO: What about other field values? */ 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); if (p) { 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 = gst_pad_template_new ("jpeg2000_video_sink_%u", GST_PAD_SINK, 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 ", framerate = " GST_VIDEO_FPS_RANGE ", colorspace = (string) { \"sRGB\", \"sYUV\" }"));