Commit 5310373d authored by Sebastian Dröge's avatar Sebastian Dröge

gst/audiotestsrc/gstaudiotestsrc.c: Properly respond to conversion queries. Fixes #464079.

Original commit message from CVS:
* gst/audiotestsrc/gstaudiotestsrc.c: (gst_audio_test_src_query):
Properly respond to conversion queries. Fixes #464079.
parent 6f397125
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),
......@@ -307,7 +307,9 @@ gst_audio_test_src_query (GstBaseSrc * basesrc, GstQuery * query)
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;
......@@ -317,7 +319,9 @@ gst_audio_test_src_query (GstBaseSrc * basesrc, GstQuery * query)
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment