diff options
author | Wim Taymans <wim.taymans@gmail.com> | 2007-01-09 12:34:45 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2007-01-09 12:34:45 +0000 |
commit | 04019f4083d8ea1d29bb3119b9c75ab9f83d0e5e (patch) | |
tree | 3baca3dfec1907fffb660e0b109e23a38993e705 /libs | |
parent | 702fbf77e95144c5def8c1f0eb85342bedd220f7 (diff) |
libs/gst/base/gstcollectpads.c: unref data at the end when we are done with the pad.
Original commit message from CVS:
* libs/gst/base/gstcollectpads.c: (gst_collect_pads_remove_pad):
unref data at the end when we are done with the pad.
Diffstat (limited to 'libs')
-rw-r--r-- | libs/gst/base/gstcollectpads.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/gst/base/gstcollectpads.c b/libs/gst/base/gstcollectpads.c index 96f921772..9a2af8b30 100644 --- a/libs/gst/base/gstcollectpads.c +++ b/libs/gst/base/gstcollectpads.c @@ -347,9 +347,6 @@ gst_collect_pads_remove_pad (GstCollectPads * pads, GstPad * pad) g_slist_delete_link (pads->abidata.ABI.pad_list, list); pads->abidata.ABI.pad_cookie++; - /* clean and free the collect data */ - unref_data (data); - /* signal waiters because something changed */ GST_COLLECT_PADS_BROADCAST (pads); @@ -357,6 +354,9 @@ gst_collect_pads_remove_pad (GstCollectPads * pads, GstPad * pad) if (!pads->started) gst_pad_set_active (pad, FALSE); + /* clean and free the collect data */ + unref_data (data); + GST_COLLECT_PADS_PAD_UNLOCK (pads); return TRUE; |