Original commit message from CVS:
* gst/audiotestsrc/gstaudiotestsrc.c: (gst_audio_test_src_query):
Properly respond to conversion queries. Fixes #464079.
+2007-08-06 Sebastian Dröge <slomo@circular-chaos.org>
+
+ * gst/audiotestsrc/gstaudiotestsrc.c: (gst_audio_test_src_query):
+ Properly respond to conversion queries. Fixes #464079.
+
2007-08-03 Sebastian Dröge <slomo@circular-chaos.org>
* gst/audiotestsrc/gstaudiotestsrc.c: (gst_audio_test_src_init),
switch (dest_fmt) {
case GST_FORMAT_TIME:
/* samples to time */
- dest_val = src_val / src->samplerate;
+ dest_val =
+ gst_util_uint64_scale_int (src_val, GST_SECOND,
+ src->samplerate);
break;
default:
goto error;
switch (dest_fmt) {
case GST_FORMAT_DEFAULT:
/* time to samples */
- dest_val = src_val * src->samplerate;
+ dest_val =
+ gst_util_uint64_scale_int (src_val, src->samplerate,
+ GST_SECOND);
break;
default:
goto error;