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 /gst/avi/gstavidemux.c | |
parent | 88b88e114e69c82c62b69d3af3962ea7a1ce554f (diff) |
Fix plugins for new query API
Original commit message from CVS:
Fix plugins for new query API
Diffstat (limited to 'gst/avi/gstavidemux.c')
-rw-r--r-- | gst/avi/gstavidemux.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gst/avi/gstavidemux.c b/gst/avi/gstavidemux.c index a44554b3..966a13d8 100644 --- a/gst/avi/gstavidemux.c +++ b/gst/avi/gstavidemux.c @@ -169,9 +169,9 @@ static const GstEventMask* gst_avi_demux_get_event_mask (GstPad *pad); static gboolean gst_avi_demux_handle_src_event (GstPad *pad, GstEvent *event); static const GstFormat* gst_avi_demux_get_src_formats (GstPad *pad); -static const GstPadQueryType* +static const GstQueryType* gst_avi_demux_get_src_query_types (GstPad *pad); -static gboolean gst_avi_demux_handle_src_query (GstPad *pad, GstPadQueryType type, +static gboolean gst_avi_demux_handle_src_query (GstPad *pad, GstQueryType type, GstFormat *format, gint64 *value); static gboolean gst_avi_demux_src_convert (GstPad *pad, GstFormat src_format, gint64 src_value, GstFormat *dest_format, gint64 *dest_value); @@ -872,12 +872,12 @@ gst_avi_demux_src_convert (GstPad *pad, GstFormat src_format, gint64 src_value, return res; } -static const GstPadQueryType* +static const GstQueryType* gst_avi_demux_get_src_query_types (GstPad *pad) { - static const GstPadQueryType src_types[] = { - GST_PAD_QUERY_TOTAL, - GST_PAD_QUERY_POSITION, + static const GstQueryType src_types[] = { + GST_QUERY_TOTAL, + GST_QUERY_POSITION, 0 }; @@ -885,7 +885,7 @@ gst_avi_demux_get_src_query_types (GstPad *pad) } static gboolean -gst_avi_demux_handle_src_query (GstPad *pad, GstPadQueryType type, +gst_avi_demux_handle_src_query (GstPad *pad, GstQueryType type, GstFormat *format, gint64 *value) { gboolean res = TRUE; @@ -893,7 +893,7 @@ gst_avi_demux_handle_src_query (GstPad *pad, GstPadQueryType type, avi_stream_context *stream = gst_pad_get_element_private (pad); switch (type) { - case GST_PAD_QUERY_TOTAL: + case GST_QUERY_TOTAL: switch (*format) { case GST_FORMAT_DEFAULT: *format = GST_FORMAT_TIME; @@ -921,7 +921,7 @@ gst_avi_demux_handle_src_query (GstPad *pad, GstPadQueryType type, break; } break; - case GST_PAD_QUERY_POSITION: + case GST_QUERY_POSITION: switch (*format) { case GST_FORMAT_DEFAULT: *format = GST_FORMAT_TIME; @@ -1341,7 +1341,7 @@ gst_avi_demux_process_chunk (GstAviDemux *avi_demux, guint64 *filepos, chunkid, *chunksize, stream_id); format = GST_FORMAT_TIME; - gst_pad_query (stream->pad, GST_PAD_QUERY_POSITION, &format, &next_ts); + gst_pad_query (stream->pad, GST_QUERY_POSITION, &format, &next_ts); if (stream->strh.init_frames == stream->current_frame && stream->delay==0) stream->delay = next_ts; |