mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-09 00:45:56 +00:00
add some debug info
Original commit message from CVS: add some debug info
This commit is contained in:
parent
2db9dfdb45
commit
ede132c69c
1 changed files with 4 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue