From: Tim-Philipp Müller Date: Thu, 20 Oct 2005 16:44:17 +0000 (+0000) Subject: gst/: Don't use functions for position queries when handling duration queries. X-Git-Tag: RELEASE-0_9_4~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2548818edce62a4ec8364bd00bc4331db23e5250;p=platform%2Fupstream%2Fgst-plugins-base.git 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. --- diff --git a/ChangeLog b/ChangeLog index 9c04b8f..691ce8f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2005-10-20 Tim-Philipp Müller + * 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 + * ext/vorbis/vorbisdec.c: (vorbis_dec_sink_event), (vorbis_handle_data_packet), (vorbis_dec_chain), (vorbis_dec_change_state): diff --git a/gst/audiotestsrc/gstaudiotestsrc.c b/gst/audiotestsrc/gstaudiotestsrc.c index 2de2551..9eeaa7c 100644 --- a/gst/audiotestsrc/gstaudiotestsrc.c +++ b/gst/audiotestsrc/gstaudiotestsrc.c @@ -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; } diff --git a/gst/sine/gstsinesrc.c b/gst/sine/gstsinesrc.c index ce04be1..e601866 100644 --- a/gst/sine/gstsinesrc.c +++ b/gst/sine/gstsinesrc.c @@ -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: