task: fix taskpool leak
authorWim Taymans <wim.taymans@collabora.co.uk>
Mon, 20 Jul 2009 13:44:36 +0000 (15:44 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Mon, 20 Jul 2009 16:02:53 +0000 (18:02 +0200)
commita78199ae5e48cabec1ed5c733e84debfc55578ca
tree94732d72f24b18fc33309ca33bc8dbc9166519f7
parent141e2af5801093aba368275de93359886e02e885
task: fix taskpool leak

GstTaks does not always unref the taskpool it was created from because it
depends on when the pool provided an ID for joining the task.
Rework some code so that we always unref the pool and optionally join when the
pool provided an id.

Fixes #589127
gst/gsttask.c