From 8c0b28395b9543ed127364edc1e19360c517140c Mon Sep 17 00:00:00 2001 From: Leif Johnson Date: Sat, 19 Jul 2003 23:25:26 +0000 Subject: [PATCH] + changes for new float caps without slope/intercept + some category changes for plugins Original commit message from CVS: + changes for new float caps without slope/intercept + some category changes for plugins --- ext/vorbis/vorbis.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/ext/vorbis/vorbis.c b/ext/vorbis/vorbis.c index e4d9da473f..a5faef9313 100644 --- a/ext/vorbis/vorbis.c +++ b/ext/vorbis/vorbis.c @@ -65,12 +65,11 @@ raw_caps2_factory (void) "vorbis_raw_float", "audio/x-raw-float", gst_props_new ( - "depth", GST_PROPS_INT (32), + "width", GST_PROPS_INT (32), "endianness", GST_PROPS_INT (G_BYTE_ORDER), - "slope", GST_PROPS_FLOAT (1.), - "intercept", GST_PROPS_FLOAT (0.), "rate", GST_PROPS_INT_RANGE (11025, 48000), - "channels", GST_PROPS_INT (2), + "channels", GST_PROPS_INT_RANGE (1, 2), + "buffer-frames", GST_PROPS_INT_RANGE (1, G_MAXINT), NULL)); } @@ -81,8 +80,8 @@ static GstTypeDefinition vorbisdefinition = { vorbis_type_find, }; -static GstCaps* -vorbis_type_find (GstBuffer *buf, gpointer private) +static GstCaps* +vorbis_type_find (GstBuffer *buf, gpointer private) { guint32 head; gint offset;