mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-07-01 04:10:41 +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
|
@ -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>
|
2005-10-20 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
* ext/vorbis/vorbisdec.c: (vorbis_dec_sink_event),
|
* ext/vorbis/vorbisdec.c: (vorbis_dec_sink_event),
|
||||||
|
|
|
@ -282,7 +282,7 @@ gst_audiotestsrc_src_query (GstPad * pad, GstQuery * query)
|
||||||
GstFormat format;
|
GstFormat format;
|
||||||
|
|
||||||
/* unlimited length */
|
/* unlimited length */
|
||||||
gst_query_parse_position (query, &format, NULL);
|
gst_query_parse_duration (query, &format, NULL);
|
||||||
gst_query_set_duration (query, format, -1);
|
gst_query_set_duration (query, format, -1);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -229,8 +229,8 @@ gst_sinesrc_src_query (GstPad * pad, GstQuery * query)
|
||||||
{
|
{
|
||||||
GstFormat format;
|
GstFormat format;
|
||||||
|
|
||||||
gst_query_parse_position (query, &format, NULL);
|
gst_query_parse_duration (query, &format, NULL);
|
||||||
gst_query_set_position (query, format, -1);
|
gst_query_set_duration (query, format, -1);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in a new issue