element: remove inactive pad g_warning in add_pad
authorMathieu Duponchelle <mathieu@centricular.com>
Thu, 20 Sep 2018 14:28:35 +0000 (16:28 +0200)
committerMathieu Duponchelle <mathieu@centricular.com>
Thu, 27 Sep 2018 10:46:50 +0000 (12:46 +0200)
commit2fee579747e027f7be0d810c73c36cc20679b16d
tree9dde47ae2f8b96e5919b368149bdbd3f8572d965
parent50c32da91fb0c398be23aff7b37ac3dc516323be
element: remove inactive pad g_warning in add_pad

The documentation incorrectly used to state that the pads were
not automatically activated when added, whereas we actually do
that when appropriate.

Callers of gst_element_add_pad must not hold the object lock,
which implies that they cannot perform the same checks as
add_pad in a non-racy manner.

This updates the documentation, and removes the g_warning
that was output before performing automatic activation.

https://bugzilla.gnome.org/show_bug.cgi?id=797181
gst/gstelement.c