From 86719f194f17773979913e21cb0629c3eba06c05 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= <sebastian.droege@collabora.co.uk>
Date: Wed, 11 Mar 2009 19:30:22 +0100
Subject: jp2kenc: Add width/height/fourcc to the pad template caps

---
 ext/jp2k/gstjasperenc.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

(limited to 'ext')

diff --git a/ext/jp2k/gstjasperenc.c b/ext/jp2k/gstjasperenc.c
index a81a2a93..fbd4fd57 100644
--- a/ext/jp2k/gstjasperenc.c
+++ b/ext/jp2k/gstjasperenc.c
@@ -62,9 +62,11 @@ static GstStaticPadTemplate gst_jasper_enc_src_template =
     GST_STATIC_PAD_TEMPLATE ("src",
     GST_PAD_SRC,
     GST_PAD_ALWAYS,
-    GST_STATIC_CAPS ("image/x-j2c, "
+    GST_STATIC_CAPS ("image/x-j2c, width = " GST_VIDEO_SIZE_RANGE ", height = "
+        GST_VIDEO_SIZE_RANGE ", fourcc = (GstFourcc) { sRGB, sYUV },"
         "framerate = " GST_VIDEO_FPS_RANGE ", " "fields = (int) 1; "
-        "image/x-jpc, "
+        "image/x-jpc, width = " GST_VIDEO_SIZE_RANGE ", height = "
+        GST_VIDEO_SIZE_RANGE ", fourcc = (GstFourcc) { sRGB, sYUV },"
         "framerate = " GST_VIDEO_FPS_RANGE ", " "fields = (int) 1; "
         "image/jp2")
     );
-- 
cgit v1.2.1