mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 15:48:23 +00:00
ghostpad: avoid calling setcaps too many times
Don't call setcaps, the caps event will take care of propagating the caps on all pads.
This commit is contained in:
parent
dc520c11bc
commit
25989f3c8d
1 changed files with 5 additions and 0 deletions
|
@ -459,7 +459,12 @@ gst_proxy_pad_setcaps_default (GstPad * pad, GstCaps * caps)
|
|||
|
||||
target = gst_proxy_pad_get_target (pad);
|
||||
if (target) {
|
||||
#if 0
|
||||
/* FIXME, not needed, the caps event will propagate over the pads
|
||||
* correctly */
|
||||
res = gst_pad_set_caps (target, caps);
|
||||
#endif
|
||||
res = TRUE;
|
||||
gst_object_unref (target);
|
||||
} else {
|
||||
/* We don't have any target, but we shouldn't return FALSE since this
|
||||
|
|
Loading…
Reference in a new issue