From f7cf0134f4213feac4a55a8bafe446d3c0b6ecda Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Sat, 30 Mar 2002 17:06:26 +0000 Subject: [PATCH] Changed to the new props API Original commit message from CVS: Changed to the new props API Other small tuff. --- ext/lame/gstlame.c | 4 ++-- ext/lame/test-lame.c | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/ext/lame/gstlame.c b/ext/lame/gstlame.c index fbedbbe..7da7a50 100644 --- a/ext/lame/gstlame.c +++ b/ext/lame/gstlame.c @@ -365,8 +365,8 @@ gst_lame_sinkconnect (GstPad *pad, GstCaps *caps) return GST_PAD_CONNECT_REFUSED; } - lame->samplerate = gst_caps_get_int (caps, "rate"); - lame->num_channels = gst_caps_get_int (caps, "channels"); + gst_caps_get_int (caps, "rate", &lame->samplerate); + gst_caps_get_int (caps, "channels", &lame->num_channels); g_object_freeze_notify (G_OBJECT (lame)); g_object_notify (G_OBJECT (lame), "frequency"); diff --git a/ext/lame/test-lame.c b/ext/lame/test-lame.c index bd200e1..cf08c06 100644 --- a/ext/lame/test-lame.c +++ b/ext/lame/test-lame.c @@ -63,8 +63,11 @@ main (int argc, char *argv[]) "signed", GST_PROPS_BOOLEAN (TRUE), "channels", GST_PROPS_INT (1) ); - caps->fixed = TRUE; - g_assert (caps != NULL); + + g_object_set (G_OBJECT (src), "sizetype", 3, + "filltype", 3, NULL); + + gst_element_set_state (pipeline, GST_STATE_READY); g_print ("Setting caps on fakesrc's src pad\n"); if (! (gst_pad_try_set_caps (gst_element_get_pad (src, "src"), caps))) -- 2.7.4