mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
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:
parent
ba34565cfc
commit
2548818edc
3 changed files with 10 additions and 3 deletions
|
@ -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),
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue