summaryrefslogtreecommitdiffstats
path: root/sys/oss/gstosssrc.c
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/oss/gstosssrc.c
parent88b88e114e69c82c62b69d3af3962ea7a1ce554f (diff)
Fix plugins for new query API
Original commit message from CVS: Fix plugins for new query API
Diffstat (limited to 'sys/oss/gstosssrc.c')
-rw-r--r--sys/oss/gstosssrc.c14
1 files changed, 7 insertions, 7 deletions
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);