gst_event_ref (event);
child = GST_ELEMENT_CAST (data);
res &= gst_element_send_event (child, event);
+ GST_LOG_OBJECT (child, "After handling %s event: %d",
+ GST_EVENT_TYPE_NAME (event), res);
gst_object_unref (child);
break;
}
GST_LOG_OBJECT (bus, "have %d messages", g_queue_get_length (bus->queue));
while ((message = g_queue_pop_head (bus->queue))) {
- GST_DEBUG_OBJECT (bus, "got message %p, %s, type mask is %u",
- message, GST_MESSAGE_TYPE_NAME (message), (guint) types);
+ GST_DEBUG_OBJECT (bus, "got message %p, %s from %s, type mask is %u",
+ message, GST_MESSAGE_TYPE_NAME (message),
+ GST_OBJECT_NAME (GST_MESSAGE_SRC (message)), (guint) types);
if ((GST_MESSAGE_TYPE (message) & types) != 0) {
/* exit the loop, we have a message */
goto beach;
if (!handler)
goto no_handler;
- GST_DEBUG_OBJECT (bus, "source %p calling dispatch with %p", source, message);
+ GST_DEBUG_OBJECT (bus, "source %p calling dispatch with %" GST_PTR_FORMAT,
+ source, message);
keep = handler (bus, message, user_data);
gst_message_unref (message);
{
g_return_if_fail (message != NULL);
- GST_CAT_LOG (GST_CAT_MESSAGE, "finalize message %p", message);
+ GST_CAT_LOG (GST_CAT_MESSAGE, "finalize message %p, %s from %s", message,
+ GST_MESSAGE_TYPE_NAME (message),
+ GST_OBJECT_NAME (GST_MESSAGE_SRC (message)));
if (GST_MESSAGE_SRC (message)) {
gst_object_unref (GST_MESSAGE_SRC (message));
{
GstMessage *copy;
- GST_CAT_LOG (GST_CAT_MESSAGE, "copy message %p", message);
+ GST_CAT_LOG (GST_CAT_MESSAGE, "copy message %p, %s from %s", message,
+ GST_MESSAGE_TYPE_NAME (message),
+ GST_OBJECT_NAME (GST_MESSAGE_SRC (message)));
copy = (GstMessage *) gst_mini_object_new (GST_TYPE_MESSAGE);
/* FIXME: Casting to GstClockEntry only works because the types
* are the same */
if (G_LIKELY (sink->priv->cached_clock_id != NULL
- && GST_CLOCK_ENTRY_CLOCK ((GstClockEntry *) sink->
- priv->cached_clock_id) == clock)) {
+ && GST_CLOCK_ENTRY_CLOCK ((GstClockEntry *) sink->priv->
+ cached_clock_id) == clock)) {
if (!gst_clock_single_shot_id_reinit (clock, sink->priv->cached_clock_id,
time)) {
gst_clock_id_unref (sink->priv->cached_clock_id);
}
gst_object_unref (pad);
+
+ GST_DEBUG_OBJECT (basesink, "handled event %p %" GST_PTR_FORMAT ": %d", event,
+ event, result);
+
return result;
}