author | Wim Taymans <wim.taymans@collabora.co.uk> | |
Mon, 16 Feb 2009 11:58:34 +0000 (12:58 +0100) | ||
committer | Wim Taymans <wim.taymans@collabora.co.uk> | |
Mon, 16 Feb 2009 11:58:34 +0000 (12:58 +0100) | ||
commit | 26f368f7e751661d53895f8c00b07bb13486bffa | |
tree | 45f7129ee88fd892c98dccc8e65b0e95c17a0b96 | tree | snapshot (tar.xz tar.gz zip) |
parent | 8efaf40013e249b1902422693d26295cd1858c1f | commit | diff |
Clear target when the target pad disappears
When the target pad disappears (because it was explicitly unlinked or the
element was removed/unreffed) make sure we receive a notify with the unlink
function on the proxy pad and clear the target. We use a simple flag to not do
this and cause deadlocks when the target was changed explicitly using the
ghostpad functions.
Update the unit test because we now unref the target sooner (and correctly).
When the target pad disappears (because it was explicitly unlinked or the
element was removed/unreffed) make sure we receive a notify with the unlink
function on the proxy pad and clear the target. We use a simple flag to not do
this and cause deadlocks when the target was changed explicitly using the
ghostpad functions.
Update the unit test because we now unref the target sooner (and correctly).
gst/gstghostpad.c | diff | blob | history | |
tests/check/gst/gstghostpad.c | diff | blob | history |