gst/: Don't use functions for position queries when handling duration queries.

Original commit message from CVS:
* gst/audiotestsrc/gstaudiotestsrc.c: (gst_audiotestsrc_src_query):
* gst/sine/gstsinesrc.c: (gst_sinesrc_src_query):
Don't use functions for position queries when handling
duration queries.
This commit is contained in:
Tim-Philipp Müller 2005-10-20 16:44:17 +00:00
parent ba34565cfc
commit 2548818edc
3 changed files with 10 additions and 3 deletions

View file

@ -1,3 +1,10 @@
2005-10-20 Tim-Philipp Müller <tim at centricular dot net>
* gst/audiotestsrc/gstaudiotestsrc.c: (gst_audiotestsrc_src_query):
* gst/sine/gstsinesrc.c: (gst_sinesrc_src_query):
Don't use functions for position queries when handling
duration queries.
2005-10-20 Tim-Philipp Müller <tim at centricular dot net>
* ext/vorbis/vorbisdec.c: (vorbis_dec_sink_event),

View file

@ -282,7 +282,7 @@ gst_audiotestsrc_src_query (GstPad * pad, GstQuery * query)
GstFormat format;
/* unlimited length */
gst_query_parse_position (query, &format, NULL);
gst_query_parse_duration (query, &format, NULL);
gst_query_set_duration (query, format, -1);
break;
}

View file

@ -229,8 +229,8 @@ gst_sinesrc_src_query (GstPad * pad, GstQuery * query)
{
GstFormat format;
gst_query_parse_position (query, &format, NULL);
gst_query_set_position (query, format, -1);
gst_query_parse_duration (query, &format, NULL);
gst_query_set_duration (query, format, -1);
break;
}
default: