diff options
author | Wim Taymans <wim.taymans@gmail.com> | 2002-12-30 17:53:18 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2002-12-30 17:53:18 +0000 |
commit | 4d36ba7e87583f5ad00ac3145542f0f22e1d3f0b (patch) | |
tree | bed6436143f8908188f632eaafb9b4d292a76229 /ext/flac | |
parent | 88b88e114e69c82c62b69d3af3962ea7a1ce554f (diff) |
Fix plugins for new query API
Original commit message from CVS:
Fix plugins for new query API
Diffstat (limited to 'ext/flac')
-rw-r--r-- | ext/flac/gstflacdec.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/ext/flac/gstflacdec.c b/ext/flac/gstflacdec.c index 1707d0e1..bd29b09f 100644 --- a/ext/flac/gstflacdec.c +++ b/ext/flac/gstflacdec.c @@ -57,9 +57,9 @@ static GstElementStateReturn static const GstFormat* gst_flacdec_get_src_formats (GstPad *pad); static gboolean gst_flacdec_convert_src (GstPad *pad, GstFormat src_format, gint64 src_value, GstFormat *dest_format, gint64 *dest_value); -static const GstPadQueryType* +static const GstQueryType* gst_flacdec_get_src_query_types (GstPad *pad); -static gboolean gst_flacdec_src_query (GstPad *pad, GstPadQueryType type, +static gboolean gst_flacdec_src_query (GstPad *pad, GstQueryType type, GstFormat *format, gint64 *value); static const GstEventMask* gst_flacdec_get_src_event_masks (GstPad *pad); @@ -476,7 +476,7 @@ gst_flacdec_loop (GstElement *element) GST_DEBUG (GST_CAT_PLUGIN_INFO, "flacdec: _loop end"); } -GST_FORMATS_FUNCTION (gst_flacdec_get_src_formats, +GST_PAD_FORMATS_FUNCTION (gst_flacdec_get_src_formats, GST_FORMAT_UNITS, GST_FORMAT_BYTES, GST_FORMAT_TIME @@ -552,19 +552,19 @@ gst_flacdec_convert_src (GstPad *pad, GstFormat src_format, gint64 src_value, } GST_PAD_QUERY_TYPE_FUNCTION (gst_flacdec_get_src_query_types, - GST_PAD_QUERY_TOTAL, - GST_PAD_QUERY_POSITION + GST_QUERY_TOTAL, + GST_QUERY_POSITION ) static gboolean -gst_flacdec_src_query (GstPad *pad, GstPadQueryType type, +gst_flacdec_src_query (GstPad *pad, GstQueryType type, GstFormat *format, gint64 *value) { gboolean res = TRUE; FlacDec *flacdec = GST_FLACDEC (gst_pad_get_parent (pad)); switch (type) { - case GST_PAD_QUERY_TOTAL: + case GST_QUERY_TOTAL: { guint64 samples; @@ -579,7 +579,7 @@ gst_flacdec_src_query (GstPad *pad, GstPadQueryType type, format, value); break; } - case GST_PAD_QUERY_POSITION: + case GST_QUERY_POSITION: gst_pad_convert (flacdec->srcpad, GST_FORMAT_UNITS, flacdec->total_samples, @@ -593,7 +593,7 @@ gst_flacdec_src_query (GstPad *pad, GstPadQueryType type, return res; } -GST_EVENT_MASK_FUNCTION (gst_flacdec_get_src_event_masks, +GST_PAD_EVENT_MASK_FUNCTION (gst_flacdec_get_src_event_masks, { GST_EVENT_SEEK, GST_SEEK_FLAG_ACCURATE } ); |