mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-15 13:53:19 +00:00
pad: comment and debug improvement
This commit is contained in:
parent
f0084ac8e9
commit
c8acf02f23
1 changed files with 4 additions and 3 deletions
|
@ -2767,8 +2767,6 @@ typedef struct
|
|||
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));
|
||||
|
||||
|
@ -2826,6 +2824,9 @@ gst_pad_query_default (GstPad * pad, GstObject * parent, GstQuery * query)
|
|||
break;
|
||||
}
|
||||
|
||||
GST_DEBUG_OBJECT (pad, "%sforwarding %p (%s) query", (forward ? "" : "not "),
|
||||
query, GST_QUERY_TYPE_NAME (query));
|
||||
|
||||
if (forward) {
|
||||
QueryData data;
|
||||
|
||||
|
@ -2838,7 +2839,7 @@ gst_pad_query_default (GstPad * pad, GstObject * parent, GstQuery * query)
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue