From 292fec2a0bd1f221a46ad69c5100995d04c01057 Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Sun, 6 Jul 2003 20:49:52 +0000 Subject: New mimetypes gone into effect today - this commit changes all old mimetypes over to the new mimetypes spec as descri... Original commit message from CVS: New mimetypes gone into effect today - this commit changes all old mimetypes over to the new mimetypes spec as described in the previous commit's document. Note: some plugins will break, some pipelines will break, expect HEAD to be broken or at least not 100% working for a few days, but don't forget to report bugs --- ext/jpeg/gstjpeg.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'ext/jpeg/gstjpeg.c') diff --git a/ext/jpeg/gstjpeg.c b/ext/jpeg/gstjpeg.c index 96c3b584..48cfaaf5 100644 --- a/ext/jpeg/gstjpeg.c +++ b/ext/jpeg/gstjpeg.c @@ -20,6 +20,7 @@ #include "gstjpegdec.h" #include "gstjpegenc.h" +#include /* elementfactory information */ extern GstElementDetails gst_jpegdec_details; @@ -34,8 +35,12 @@ jpeg_caps_factory (void) return gst_caps_new ( "jpeg_jpeg", - "video/jpeg", - NULL); + "video/x-jpeg", + gst_props_new ( + "width", GST_PROPS_INT_RANGE (16, 4096), + "height", GST_PROPS_INT_RANGE (16, 4096), + "framerate", GST_PROPS_FLOAT_RANGE (0, G_MAXFLOAT), + NULL)); } static GstCaps* @@ -44,14 +49,9 @@ raw_caps_factory (void) return gst_caps_new ( "jpeg_raw", - "video/raw", - gst_props_new ( - "format", GST_PROPS_LIST ( - GST_PROPS_FOURCC (GST_MAKE_FOURCC ('I','4','2','0')) - ), - "width", GST_PROPS_INT_RANGE (16, 4096), - "height", GST_PROPS_INT_RANGE (16, 4096), - NULL)); + "video/x-raw-yuv", + GST_VIDEO_YUV_PAD_TEMPLATE_PROPS ( + GST_PROPS_FOURCC (GST_MAKE_FOURCC ('I','4','2','0')))); } static gboolean -- cgit