add some debug info

Original commit message from CVS:
add some debug info
This commit is contained in:
Thomas Vander Stichele 2002-11-10 14:28:25 +00:00
parent 2db9dfdb45
commit ede132c69c

View file

@ -2686,8 +2686,11 @@ gst_pad_send_event (GstPad *pad, GstEvent *event)
rpad = GST_PAD_REALIZE (pad);
/* 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_USABLE (rpad)) {
GST_DEBUG (GST_CAT_EVENT, "pad %s:%s is not usable",
GST_DEBUG_PAD_NAME (rpad));
return FALSE;
}
if (GST_EVENT_SRC (event) == NULL)
GST_EVENT_SRC (event) = gst_object_ref (GST_OBJECT (rpad));