mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 14:06:23 +00:00
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:
parent
9bc0e85dce
commit
696cf53af5
2 changed files with 9 additions and 3 deletions
|
@ -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>
|
||||
|
||||
* gst/gstregistryxml.c: (load_plugin):
|
||||
|
|
|
@ -360,7 +360,8 @@ gst_proxy_pad_get_target (GstPad * pad)
|
|||
|
||||
GST_PROXY_LOCK (pad);
|
||||
target = GST_PROXY_PAD_TARGET (pad);
|
||||
gst_object_ref (target);
|
||||
if (target)
|
||||
gst_object_ref (target);
|
||||
GST_PROXY_UNLOCK (pad);
|
||||
|
||||
return target;
|
||||
|
@ -813,10 +814,10 @@ gst_ghost_pad_new (const gchar * name, GstPad * target)
|
|||
* gst_ghost_pad_get_target:
|
||||
* @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
|
||||
* has no target set. Unref after usage.
|
||||
* has no target set. Unref target pad after usage.
|
||||
*/
|
||||
GstPad *
|
||||
gst_ghost_pad_get_target (GstGhostPad * gpad)
|
||||
|
|
Loading…
Reference in a new issue