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/dv | |
parent | 88b88e114e69c82c62b69d3af3962ea7a1ce554f (diff) |
Fix plugins for new query API
Original commit message from CVS:
Fix plugins for new query API
Diffstat (limited to 'ext/dv')
-rw-r--r-- | ext/dv/gstdvdec.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/ext/dv/gstdvdec.c b/ext/dv/gstdvdec.c index 1d41f0c5..2983097f 100644 --- a/ext/dv/gstdvdec.c +++ b/ext/dv/gstdvdec.c @@ -189,9 +189,9 @@ gst_dvdec_quality_get_type (void) static void gst_dvdec_class_init (GstDVDecClass *klass); static void gst_dvdec_init (GstDVDec *dvdec); -static const GstPadQueryType* +static const GstQueryType* gst_dvdec_get_src_query_types (GstPad *pad); -static gboolean gst_dvdec_src_query (GstPad *pad, GstPadQueryType type, +static gboolean gst_dvdec_src_query (GstPad *pad, GstQueryType type, GstFormat *format, gint64 *value); static const GstFormat* gst_dvdec_get_formats (GstPad *pad); static gboolean gst_dvdec_sink_convert (GstPad *pad, GstFormat src_format, gint64 src_value, @@ -458,19 +458,19 @@ gst_dvdec_sink_convert (GstPad *pad, GstFormat src_format, gint64 src_value, return res; } -static const GstPadQueryType* +static const GstQueryType* gst_dvdec_get_src_query_types (GstPad *pad) { - static const GstPadQueryType src_query_types[] = { - GST_PAD_QUERY_TOTAL, - GST_PAD_QUERY_POSITION, + static const GstQueryType src_query_types[] = { + GST_QUERY_TOTAL, + GST_QUERY_POSITION, 0 }; return src_query_types; } static gboolean -gst_dvdec_src_query (GstPad *pad, GstPadQueryType type, +gst_dvdec_src_query (GstPad *pad, GstQueryType type, GstFormat *format, gint64 *value) { gboolean res = TRUE; @@ -479,7 +479,7 @@ gst_dvdec_src_query (GstPad *pad, GstPadQueryType type, dvdec = GST_DVDEC (gst_pad_get_parent (pad)); switch (type) { - case GST_PAD_QUERY_TOTAL: + case GST_QUERY_TOTAL: switch (*format) { case GST_FORMAT_DEFAULT: *format = GST_FORMAT_TIME; @@ -504,7 +504,7 @@ gst_dvdec_src_query (GstPad *pad, GstPadQueryType type, } } break; - case GST_PAD_QUERY_POSITION: + case GST_QUERY_POSITION: switch (*format) { case GST_FORMAT_DEFAULT: *format = GST_FORMAT_TIME; @@ -777,7 +777,7 @@ gst_dvdec_loop (GstElement *element) } format = GST_FORMAT_TIME; - gst_pad_query (dvdec->videosrcpad, GST_PAD_QUERY_POSITION, &format, &ts); + gst_pad_query (dvdec->videosrcpad, GST_QUERY_POSITION, &format, &ts); /* FIXME this is inaccurate for NTSC */ dvdec->next_ts += GST_SECOND / dvdec->framerate; |