_IS_USABLE also checks for the peer pad, IS_ACTIVE is correct in this case.

Original commit message from CVS:
_IS_USABLE also checks for the peer pad, IS_ACTIVE is correct in this
case.
This commit is contained in:
Wim Taymans 2002-12-27 04:24:56 +00:00
parent 290a082d53
commit 3b210c32e6

View file

@ -2796,7 +2796,7 @@ gst_pad_send_event (GstPad *pad, GstEvent *event)
rpad = GST_PAD_REALIZE (pad); rpad = GST_PAD_REALIZE (pad);
/* don't send events on usuable pads */ /* don't send events on usuable pads */
if (GST_PAD_IS_SINK (rpad) && !GST_PAD_IS_USABLE (rpad)) { if (GST_PAD_IS_SINK (rpad) && !GST_PAD_IS_ACTIVE (rpad)) {
GST_DEBUG (GST_CAT_EVENT, "pad %s:%s is not usable", GST_DEBUG (GST_CAT_EVENT, "pad %s:%s is not usable",
GST_DEBUG_PAD_NAME (rpad)); GST_DEBUG_PAD_NAME (rpad));
return FALSE; return FALSE;