Commit c0b3a186 authored by Stefan Kost's avatar Stefan Kost
Browse files

gst/wavparse/gstwavparse.c: Unbreak my previous commit (swapped nominator &...

gst/wavparse/gstwavparse.c: Unbreak my previous commit (swapped nominator & denominator). Tim, thanks for spotting.

Original commit message from CVS:
* gst/wavparse/gstwavparse.c: (gst_wavparse_stream_headers),
(gst_wavparse_stream_data):
Unbreak my previous commit (swapped nominator & denominator). Tim,
thanks for spotting.
parent 2b6329e3
2007-03-02 Stefan Kost <ensonic@users.sf.net>
* gst/wavparse/gstwavparse.c: (gst_wavparse_stream_headers),
(gst_wavparse_stream_data):
Unbreak my previous commit (swapped nominator & denominator). Tim,
thanks for spotting.
2007-03-02 Wim Taymans <wim@fluendo.com>
* ext/cdio/gstcdiocddasrc.c: (gst_cdio_cdda_src_probe_devices),
......
......@@ -1280,7 +1280,7 @@ gst_wavparse_stream_headers (GstWavParse * wav)
}
if (wav->bps > 0) {
duration = uint64_ceiling_scale_int (wav->datasize, wav->bps, GST_SECOND);
duration = uint64_ceiling_scale_int (wav->datasize, GST_SECOND, wav->bps);
GST_DEBUG_OBJECT (wav, "Got duration %" GST_TIME_FORMAT,
GST_TIME_ARGS (duration));
gst_segment_init (&wav->segment, GST_FORMAT_TIME);
......@@ -1531,8 +1531,8 @@ iterate_adapter:
if (wav->bps > 0) {
/* and timestamps if we have a bitrate, be carefull for overflows */
timestamp = uint64_ceiling_scale_int (pos, wav->bps, GST_SECOND);
next_timestamp = uint64_ceiling_scale_int (nextpos, wav->bps, GST_SECOND);
timestamp = uint64_ceiling_scale_int (pos, GST_SECOND, wav->bps);
next_timestamp = uint64_ceiling_scale_int (nextpos, GST_SECOND, wav->bps);
duration = next_timestamp - timestamp;
/* update current running segment position */
......
Supports Markdown
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