From: Thomas Vander Stichele Date: Wed, 2 Oct 2002 08:04:00 +0000 (+0000) Subject: api change X-Git-Tag: 1.19.3~509^2~1916^2~173 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5783e8c14ff5210ec5e02cf686762cd4352d6f5a;p=platform%2Fupstream%2Fgstreamer.git api change Original commit message from CVS: api change --- diff --git a/ext/lame/gstlame.c b/ext/lame/gstlame.c index e374858..13f5b8b 100644 --- a/ext/lame/gstlame.c +++ b/ext/lame/gstlame.c @@ -362,7 +362,7 @@ gst_lame_sinkconnect (GstPad *pad, GstCaps *caps) */ gst_caps_debug (gst_pad_get_caps (pad), "original caps on sink pad"); /* check if the supplied caps of the peer element are compatible with our own use gst_pad_get_caps because if caps aren't set yet we need the template */ - if (!gst_caps_check_compatibility (caps, gst_pad_get_caps (pad))) + if (!gst_caps_is_always_compatible (caps, gst_pad_get_caps (pad))) { GST_DEBUG (GST_CAT_CAPS, "peer caps (%p) not compatible with caps of pad %s:%s!", @@ -757,7 +757,11 @@ gst_lame_setup (GstLame *lame) { GST_DEBUG_ENTER ("(\"%s\")", gst_element_get_name (GST_ELEMENT (lame))); - g_assert (!lame->initialized); + /* check if we're already initialized; if we are, we might want to check + * if this initialization is compatible with the previous one */ + /* FIXME: do this */ + if (lame->initialized) + g_warning ("already initialized"); /* copy the parameters over */ lame_set_in_samplerate (lame->lgf, lame->samplerate);