summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2002-12-30 17:53:18 +0000
committerWim Taymans <wim.taymans@gmail.com>2002-12-30 17:53:18 +0000
commit4d36ba7e87583f5ad00ac3145542f0f22e1d3f0b (patch)
treebed6436143f8908188f632eaafb9b4d292a76229 /sys
parent88b88e114e69c82c62b69d3af3962ea7a1ce554f (diff)
Fix plugins for new query API
Original commit message from CVS: Fix plugins for new query API
Diffstat (limited to 'sys')
-rw-r--r--sys/oss/gstosssink.c22
-rw-r--r--sys/oss/gstosssrc.c14
2 files changed, 18 insertions, 18 deletions
diff --git a/sys/oss/gstosssink.c b/sys/oss/gstosssink.c
index 86ca1f3f..a37036c0 100644
--- a/sys/oss/gstosssink.c
+++ b/sys/oss/gstosssink.c
@@ -49,10 +49,10 @@ static GstClockTime gst_osssink_get_time (GstClock *clock, gpointer data);
static const GstFormat* gst_osssink_get_formats (GstPad *pad);
static gboolean gst_osssink_convert (GstPad *pad, GstFormat src_format, gint64 src_value,
GstFormat *dest_format, gint64 *dest_value);
-static const GstPadQueryType* gst_osssink_get_query_types (GstPad *pad);
-static gboolean gst_osssink_query (GstElement *element, GstPadQueryType type,
+static const GstQueryType* gst_osssink_get_query_types (GstPad *pad);
+static gboolean gst_osssink_query (GstElement *element, GstQueryType type,
GstFormat *format, gint64 *value);
-static gboolean gst_osssink_sink_query (GstPad *pad, GstPadQueryType type,
+static gboolean gst_osssink_sink_query (GstPad *pad, GstQueryType type,
GstFormat *format, gint64 *value);
static GstPadConnectReturn gst_osssink_sinkconnect (GstPad *pad, GstCaps *caps);
@@ -432,19 +432,19 @@ gst_osssink_convert (GstPad *pad, GstFormat src_format, gint64 src_value,
dest_format, dest_value);
}
-static const GstPadQueryType*
+static const GstQueryType*
gst_osssink_get_query_types (GstPad *pad)
{
- static const GstPadQueryType query_types[] = {
- GST_PAD_QUERY_LATENCY,
- GST_PAD_QUERY_POSITION,
+ static const GstQueryType query_types[] = {
+ GST_QUERY_LATENCY,
+ GST_QUERY_POSITION,
0,
};
return query_types;
}
static gboolean
-gst_osssink_sink_query (GstPad *pad, GstPadQueryType type, GstFormat *format, gint64 *value)
+gst_osssink_sink_query (GstPad *pad, GstQueryType type, GstFormat *format, gint64 *value)
{
gboolean res = TRUE;
GstOssSink *osssink;
@@ -452,7 +452,7 @@ gst_osssink_sink_query (GstPad *pad, GstPadQueryType type, GstFormat *format, gi
osssink = GST_OSSSINK (gst_pad_get_parent (pad));
switch (type) {
- case GST_PAD_QUERY_LATENCY:
+ case GST_QUERY_LATENCY:
if (!gst_osssink_convert (pad,
GST_FORMAT_BYTES, gst_osssink_get_delay (osssink),
format, value))
@@ -460,7 +460,7 @@ gst_osssink_sink_query (GstPad *pad, GstPadQueryType type, GstFormat *format, gi
res = FALSE;
}
break;
- case GST_PAD_QUERY_POSITION:
+ case GST_QUERY_POSITION:
if (!gst_osssink_convert (pad,
GST_FORMAT_TIME, gst_clock_get_time (osssink->provided_clock),
format, value))
@@ -477,7 +477,7 @@ gst_osssink_sink_query (GstPad *pad, GstPadQueryType type, GstFormat *format, gi
}
static gboolean
-gst_osssink_query (GstElement *element, GstPadQueryType type, GstFormat *format, gint64 *value)
+gst_osssink_query (GstElement *element, GstQueryType type, GstFormat *format, gint64 *value)
{
GstOssSink *osssink = GST_OSSSINK (element);
diff --git a/sys/oss/gstosssrc.c b/sys/oss/gstosssrc.c
index b3f51693..83c32f7b 100644
--- a/sys/oss/gstosssrc.c
+++ b/sys/oss/gstosssrc.c
@@ -100,8 +100,8 @@ static GstElementStateReturn gst_osssrc_change_state (GstElement *element);
static const GstEventMask* gst_osssrc_get_event_masks (GstPad *pad);
static gboolean gst_osssrc_src_event (GstPad *pad, GstEvent *event);
static gboolean gst_osssrc_send_event (GstElement *element, GstEvent *event);
-static const GstPadQueryType* gst_osssrc_get_query_types (GstPad *pad);
-static gboolean gst_osssrc_src_query (GstPad *pad, GstPadQueryType type,
+static const GstQueryType* gst_osssrc_get_query_types (GstPad *pad);
+static gboolean gst_osssrc_src_query (GstPad *pad, GstQueryType type,
GstFormat *format, gint64 *value);
static GstBuffer * gst_osssrc_get (GstPad *pad);
@@ -459,18 +459,18 @@ gst_osssrc_send_event (GstElement *element,
return gst_osssrc_src_event (osssrc->srcpad, event);
}
-static const GstPadQueryType*
+static const GstQueryType*
gst_osssrc_get_query_types (GstPad *pad)
{
- static const GstPadQueryType query_types[] = {
- GST_PAD_QUERY_POSITION,
+ static const GstQueryType query_types[] = {
+ GST_QUERY_POSITION,
0,
};
return query_types;
}
static gboolean
-gst_osssrc_src_query (GstPad *pad, GstPadQueryType type, GstFormat *format, gint64 *value)
+gst_osssrc_src_query (GstPad *pad, GstQueryType type, GstFormat *format, gint64 *value)
{
gboolean res = FALSE;
GstOssSrc *osssrc;
@@ -478,7 +478,7 @@ gst_osssrc_src_query (GstPad *pad, GstPadQueryType type, GstFormat *format, gint
osssrc = GST_OSSSRC (gst_pad_get_parent (pad));
switch (type) {
- case GST_PAD_QUERY_POSITION:
+ case GST_QUERY_POSITION:
res = gst_osscommon_convert (&osssrc->common,
GST_FORMAT_BYTES, osssrc->curoffset,
format, value);