gboolean result = FALSE;
/* first see what is possible on our source pad */
- thiscaps = gst_pad_get_caps_refed (RSN_BASE_SRC_PAD (basesrc));
+ thiscaps = gst_pad_get_caps (RSN_BASE_SRC_PAD (basesrc));
GST_DEBUG_OBJECT (basesrc, "caps of src: %" GST_PTR_FORMAT, thiscaps);
/* nothing or anything is allowed, we're done */
if (thiscaps == NULL || gst_caps_is_any (thiscaps))
goto no_caps;
/* get the peer caps */
- peercaps = gst_pad_peer_get_caps_refed (RSN_BASE_SRC_PAD (basesrc));
+ peercaps = gst_pad_peer_get_caps (RSN_BASE_SRC_PAD (basesrc));
GST_DEBUG_OBJECT (basesrc, "caps of peer: %" GST_PTR_FORMAT, peercaps);
if (peercaps) {
GstCaps *icaps;
GST_AUTOCONVERT_LOCK (autoconvert);
if (autoconvert->factories == NULL) {
GList *factories = g_value_get_pointer (value);
- autoconvert->factories = gst_plugin_feature_list_copy (factories);
+ autoconvert->factories = g_list_copy (factories);
} else
GST_WARNING_OBJECT (object, "Can not reset factories after they"
" have been set or auto-discovered");