From 1013c6c79b154e12792eb760dba705e3c8985180 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 8 Nov 2011 15:48:34 +0100 Subject: [PATCH] pad: add defines for query probes --- gst/gstpad.h | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/gst/gstpad.h b/gst/gstpad.h index 344df077c7..025b477eae 100644 --- a/gst/gstpad.h +++ b/gst/gstpad.h @@ -474,6 +474,8 @@ typedef gboolean (*GstPadForwardFunction) (GstPad *pad, gpointer user_data); * @GST_PAD_PROBE_TYPE_BUFFER_LIST: probe buffer lists * @GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM: probe downstream events * @GST_PAD_PROBE_TYPE_EVENT_UPSTREAM: probe upstream events + * @GST_PAD_PROBE_TYPE_QUERY_DOWNSTREAM: probe downstream queries + * @GST_PAD_PROBE_TYPE_QUERY_UPSTREAM: probe upstream queries * @GST_PAD_PROBE_TYPE_PUSH: probe push * @GST_PAD_PROBE_TYPE_PULL: probe pull * @@ -488,13 +490,15 @@ typedef enum GST_PAD_PROBE_TYPE_IDLE = (1 << 0), GST_PAD_PROBE_TYPE_BLOCK = (1 << 1), /* flags to select datatypes */ - GST_PAD_PROBE_TYPE_BUFFER = (1 << 2), - GST_PAD_PROBE_TYPE_BUFFER_LIST = (1 << 3), - GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM = (1 << 4), - GST_PAD_PROBE_TYPE_EVENT_UPSTREAM = (1 << 5), + GST_PAD_PROBE_TYPE_BUFFER = (1 << 4), + GST_PAD_PROBE_TYPE_BUFFER_LIST = (1 << 5), + GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM = (1 << 6), + GST_PAD_PROBE_TYPE_EVENT_UPSTREAM = (1 << 7), + GST_PAD_PROBE_TYPE_QUERY_DOWNSTREAM = (1 << 8), + GST_PAD_PROBE_TYPE_QUERY_UPSTREAM = (1 << 9), /* flags to select scheduling mode */ - GST_PAD_PROBE_TYPE_PUSH = (1 << 6), - GST_PAD_PROBE_TYPE_PULL = (1 << 7), + GST_PAD_PROBE_TYPE_PUSH = (1 << 12), + GST_PAD_PROBE_TYPE_PULL = (1 << 13), } GstPadProbeType; #define GST_PAD_PROBE_TYPE_BLOCKING (GST_PAD_PROBE_TYPE_IDLE | GST_PAD_PROBE_TYPE_BLOCK) @@ -554,6 +558,7 @@ typedef struct #define GST_PAD_PROBE_INFO_BUFFER(d) GST_BUFFER_CAST(GST_PAD_PROBE_INFO_DATA(d)) #define GST_PAD_PROBE_INFO_BUFFER_LIST(d) GST_BUFFER_LIST_CAST(GST_PAD_PROBE_INFO_DATA(d)) #define GST_PAD_PROBE_INFO_EVENT(d) GST_EVENT_CAST(GST_PAD_PROBE_INFO_DATA(d)) +#define GST_PAD_PROBE_INFO_QUERY(d) GST_QUERY_CAST(GST_PAD_PROBE_INFO_DATA(d)) #define GST_PAD_PROBE_INFO_OFFSET(d) ((d)->offset) #define GST_PAD_PROBE_INFO_SIZE(d) ((d)->size)