mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-09 08:55:33 +00:00
gst/gstghostpad.c: Make acceptcaps return TRUE when we don't have a target, just like setcaps does.
Original commit message from CVS: * gst/gstghostpad.c: (gst_proxy_pad_do_acceptcaps), (gst_ghost_pad_new_full): Make acceptcaps return TRUE when we don't have a target, just like setcaps does.
This commit is contained in:
parent
efebdfa353
commit
6dc97edc2f
2 changed files with 13 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
|||
2006-10-27 Wim Taymans <wim@fluendo.com>
|
||||
|
||||
* gst/gstghostpad.c: (gst_proxy_pad_do_acceptcaps),
|
||||
(gst_ghost_pad_new_full):
|
||||
Make acceptcaps return TRUE when we don't have a target, just like
|
||||
setcaps does.
|
||||
|
||||
2006-10-27 Wim Taymans <wim@fluendo.com>
|
||||
|
||||
* libs/gst/base/gstbasetransform.c: (gst_base_transform_chain):
|
||||
|
|
|
@ -265,11 +265,15 @@ static gboolean
|
|||
gst_proxy_pad_do_acceptcaps (GstPad * pad, GstCaps * caps)
|
||||
{
|
||||
GstPad *target = gst_proxy_pad_get_target (pad);
|
||||
gboolean res = FALSE;
|
||||
gboolean res;
|
||||
|
||||
if (target) {
|
||||
res = gst_pad_accept_caps (target, caps);
|
||||
gst_object_unref (target);
|
||||
} else {
|
||||
/* We don't have a target, we return TRUE and we assume that any future
|
||||
* target will be able to deal with any configured caps. */
|
||||
res = TRUE;
|
||||
}
|
||||
|
||||
return res;
|
||||
|
@ -827,6 +831,7 @@ gst_ghost_pad_new_full (const gchar * name, GstPadDirection dir,
|
|||
g_object_new (GST_TYPE_PROXY_PAD, "name", NULL,
|
||||
"direction", otherdir, NULL);
|
||||
}
|
||||
/* GST_PAD_UNSET_FLUSHING (internal); */
|
||||
|
||||
/* Set directional padfunctions for internal pad */
|
||||
if (dir == GST_PAD_SRC) {
|
||||
|
|
Loading…
Reference in a new issue