ghostpad: fix locking

This commit is contained in:
Wim Taymans 2009-11-05 14:02:28 +01:00
parent 0467799f22
commit 473594b3a4

View file

@ -1242,7 +1242,9 @@ link_failed:
GST_WARNING_OBJECT (gpad, "could not link internal and target, reason:%d",
lret);
/* and unset target again */
GST_PROXY_LOCK (gpad);
gst_proxy_pad_set_target_unlocked (GST_PAD_CAST (gpad), NULL);
GST_PROXY_UNLOCK (gpad);
return FALSE;
}
}