summaryrefslogtreecommitdiffstats
path: root/gst/avi/audiocodecs.c
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2002-01-13 22:27:25 +0000
committerWim Taymans <wim.taymans@gmail.com>2002-01-13 22:27:25 +0000
commit97454065ce4921877100d0f829d4638438424dfe (patch)
treeb7fba2905e195b55f136e65332777fb96fee3d65 /gst/avi/audiocodecs.c
parent1ea946d2d26998d7056d233548d88b57322ffdcf (diff)
Bring the plugins in sync with the new core capsnego system.
Original commit message from CVS: Bring the plugins in sync with the new core capsnego system. Added some features, enhancements...
Diffstat (limited to 'gst/avi/audiocodecs.c')
-rw-r--r--gst/avi/audiocodecs.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/gst/avi/audiocodecs.c b/gst/avi/audiocodecs.c
index 9415055c..3414ab7f 100644
--- a/gst/avi/audiocodecs.c
+++ b/gst/avi/audiocodecs.c
@@ -50,19 +50,19 @@ GstPad *gst_avi_decoder_get_audio_srcpad(GstAviDecoder *avi_decoder, guint pad_n
switch (strf->format) {
case GST_RIFF_WAVE_FORMAT_PCM:
newpad = gst_pad_new("audio_00", GST_PAD_SRC);
- gst_pad_set_caps (newpad, gst_caps_new (
+ gst_pad_try_set_caps (newpad,
+ GST_CAPS_NEW (
"avidecoder_caps",
"audio/raw",
- gst_props_new (
- "format", GST_PROPS_STRING ("int"),
- "law", GST_PROPS_INT (0),
- "endianness", GST_PROPS_INT (G_BYTE_ORDER),
- "signed", GST_PROPS_BOOLEAN (TRUE),
- "width", GST_PROPS_INT ((gint)strf->size),
- "depth", GST_PROPS_INT ((gint)strf->size),
- "rate", GST_PROPS_INT ((gint)strf->rate),
- "channels", GST_PROPS_INT ((gint)strf->channels),
- NULL)));
+ "format", GST_PROPS_STRING ("int"),
+ "law", GST_PROPS_INT (0),
+ "endianness", GST_PROPS_INT (G_BYTE_ORDER),
+ "signed", GST_PROPS_BOOLEAN (TRUE),
+ "width", GST_PROPS_INT ((gint)strf->size),
+ "depth", GST_PROPS_INT ((gint)strf->size),
+ "rate", GST_PROPS_INT ((gint)strf->rate),
+ "channels", GST_PROPS_INT ((gint)strf->channels)
+ ));
avi_decoder->audio_pad[pad_nr] = newpad;
return newpad;