diff options
author | Ronald S. Bultje <rbultje@ronald.bitfreak.net> | 2003-07-06 20:49:52 +0000 |
---|---|---|
committer | Ronald S. Bultje <rbultje@ronald.bitfreak.net> | 2003-07-06 20:49:52 +0000 |
commit | 292fec2a0bd1f221a46ad69c5100995d04c01057 (patch) | |
tree | 658db299e0e03b2454ff840730569d79539e67c4 /gst/level | |
parent | a8183e9a3fa87cf4247c7df16207f440ea4069c0 (diff) |
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
Diffstat (limited to 'gst/level')
-rw-r--r-- | gst/level/gstlevel.c | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/gst/level/gstlevel.c b/gst/level/gstlevel.c index 91ea46d4..ad4f1b15 100644 --- a/gst/level/gstlevel.c +++ b/gst/level/gstlevel.c @@ -23,6 +23,7 @@ #include <gst/gst.h> #include "gstlevel.h" #include "math.h" +#include <gst/audio/audio.h> /* elementfactory information */ static GstElementDetails level_details = { @@ -58,11 +59,11 @@ level_src_factory (void) GST_PAD_ALWAYS, gst_caps_new ( "test_src", - "audio/raw", - gst_props_new ( - "channels", GST_PROPS_INT_RANGE (1, 2), - NULL)), - NULL); + "audio/x-raw-int", + GST_AUDIO_INT_PAD_TEMPLATE_PROPS + ), + NULL + ); } return template; } @@ -79,11 +80,11 @@ level_sink_factory (void) GST_PAD_ALWAYS, gst_caps_new ( "test_src", - "audio/raw", - gst_props_new ( - "channels", GST_PROPS_INT_RANGE (1, 2), - NULL)), - NULL); + "audio/x-raw-int", + GST_AUDIO_INT_PAD_TEMPLATE_PROPS + ), + NULL + ); } return template; } @@ -137,7 +138,7 @@ gst_level_connect (GstPad *pad, GstCaps *caps) if (GST_CAPS_IS_FIXED (caps)) { /*if ( !volume_parse_caps (filter, caps) || */ - return gst_pad_try_set_caps (otherpad, caps); + return gst_pad_try_set_caps (otherpad, gst_caps_ref (caps)); } return GST_PAD_LINK_DELAYED; } |