+2004-10-11 Benjamin Otte <otte@gnome.org>
+
+ * gst/gstpad.c: (gst_pad_renegotiate), (gst_pad_try_set_caps),
+ (gst_pad_try_set_caps_nonfixed):
+ allow renegotiation of unconnected pads (as inside spider). Simply
+ return OK if unconnected - mimic try_set_caps there.
+
2004-10-09 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* gst/gstbin.c: (gst_bin_sync_children_state):
* gst/elements/gstidentity.h:
Added datarate properties to limit the datarate.
+>>>>>>> 1.808
2004-08-25 Benjamin Otte <in7y118@public.uni-hamburg.de>
* gst/autoplug/gstspider.c: (plugin_init):
GstPadLink *link;
g_return_val_if_fail (GST_IS_PAD (pad), GST_PAD_LINK_REFUSED);
- g_return_val_if_fail (GST_PAD_LINK_SRC (pad), GST_PAD_LINK_REFUSED);
- g_return_val_if_fail (GST_PAD_LINK_SINK (pad), GST_PAD_LINK_REFUSED);
+ if (!GST_PAD_PEER (pad))
+ return GST_PAD_LINK_OK;
link = gst_pad_link_new ();
return GST_PAD_LINK_OK;
}
- g_return_val_if_fail (GST_PAD_LINK_SRC (pad), GST_PAD_LINK_REFUSED);
- g_return_val_if_fail (GST_PAD_LINK_SINK (pad), GST_PAD_LINK_REFUSED);
+ /* we just checked that a peer exists */
+ g_assert (GST_PAD_LINK_SRC (pad));
+ g_assert (GST_PAD_LINK_SINK (pad));
/* if the desired caps are already there, it's trivially ok */
if (GST_PAD_CAPS (pad) && gst_caps_is_equal (caps, GST_PAD_CAPS (pad))) {
return GST_PAD_LINK_OK;
}
- g_return_val_if_fail (GST_PAD_LINK_SRC (pad), GST_PAD_LINK_REFUSED);
- g_return_val_if_fail (GST_PAD_LINK_SINK (pad), GST_PAD_LINK_REFUSED);
+ /* we just checked that a peer exists */
+ g_assert (GST_PAD_LINK_SRC (pad));
+ g_assert (GST_PAD_LINK_SINK (pad));
/* if the link is already negotiated and the caps are compatible
* with what we're setting, it's trivially OK. */