gst/gstghostpad.c: Don't ref NULL target pad (#322751). Improve docs.

Original commit message from CVS:
* gst/gstghostpad.c: (gst_proxy_pad_get_target):
Don't ref NULL target pad (#322751). Improve docs.
This commit is contained in:
Tim-Philipp Müller 2005-11-29 13:10:38 +00:00
parent 9bc0e85dce
commit 696cf53af5
2 changed files with 9 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2005-11-29 Tim-Philipp Müller <tim at centricular dot net>
* gst/gstghostpad.c: (gst_proxy_pad_get_target):
Don't ref NULL target pad (#322751). Improve docs.
2005-11-29 Michael Smith <msmith@fluendo.com> 2005-11-29 Michael Smith <msmith@fluendo.com>
* gst/gstregistryxml.c: (load_plugin): * gst/gstregistryxml.c: (load_plugin):

View file

@ -360,6 +360,7 @@ gst_proxy_pad_get_target (GstPad * pad)
GST_PROXY_LOCK (pad); GST_PROXY_LOCK (pad);
target = GST_PROXY_PAD_TARGET (pad); target = GST_PROXY_PAD_TARGET (pad);
if (target)
gst_object_ref (target); gst_object_ref (target);
GST_PROXY_UNLOCK (pad); GST_PROXY_UNLOCK (pad);
@ -813,10 +814,10 @@ gst_ghost_pad_new (const gchar * name, GstPad * target)
* gst_ghost_pad_get_target: * gst_ghost_pad_get_target:
* @gpad: the #GstGhostpad * @gpad: the #GstGhostpad
* *
* Get the target pad of #gpad. Unref after usage. * Get the target pad of #gpad. Unref target pad after usage.
* *
* Returns: the target #GstPad, can be NULL if the ghostpad * Returns: the target #GstPad, can be NULL if the ghostpad
* has no target set. Unref after usage. * has no target set. Unref target pad after usage.
*/ */
GstPad * GstPad *
gst_ghost_pad_get_target (GstGhostPad * gpad) gst_ghost_pad_get_target (GstGhostPad * gpad)