static gboolean
query_forward_func (GstPad * pad, QueryData * data)
{
- /* for each pad we send to, we should ref the query; it's up
- * to downstream to unref again when handled. */
GST_LOG_OBJECT (pad, "query peer %p (%s) of %s:%s",
data->query, GST_EVENT_TYPE_NAME (data->query), GST_DEBUG_PAD_NAME (pad));
break;
}
+ GST_DEBUG_OBJECT (pad, "%sforwarding %p (%s) query", (forward ? "" : "not "),
+ query, GST_QUERY_TYPE_NAME (query));
+
if (forward) {
QueryData data;
if (data.dispatched) {
ret = data.result;
} else {
- /* nothing dispatched, could be drained */
+ /* nothing dispatched, assume drained */
if (GST_QUERY_TYPE (query) == GST_QUERY_DRAIN)
ret = TRUE;
else