mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-21 07:46:38 +00:00
ext/wavpack/gstwavpackparse.c: Remove old workaround that was needed when seeking after the last sample. With the fix...
Original commit message from CVS: * ext/wavpack/gstwavpackparse.c: (gst_wavpack_parse_handle_seek_event): Remove old workaround that was needed when seeking after the last sample. With the fixed error handling this works now as expected without pushing the last sample although it wasn't requested.
This commit is contained in:
parent
eee3562f09
commit
842e4f6220
2 changed files with 8 additions and 5 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
2007-05-02 Sebastian Dröge <slomo@circular-chaos.org>
|
||||||
|
|
||||||
|
* ext/wavpack/gstwavpackparse.c:
|
||||||
|
(gst_wavpack_parse_handle_seek_event):
|
||||||
|
Remove old workaround that was needed when seeking after the last
|
||||||
|
sample. With the fixed error handling this works now as expected
|
||||||
|
without pushing the last sample although it wasn't requested.
|
||||||
|
|
||||||
2007-05-02 Sebastian Dröge <slomo@circular-chaos.org>
|
2007-05-02 Sebastian Dröge <slomo@circular-chaos.org>
|
||||||
|
|
||||||
* ext/wavpack/gstwavpackparse.c:
|
* ext/wavpack/gstwavpackparse.c:
|
||||||
|
|
|
@ -540,11 +540,6 @@ gst_wavpack_parse_handle_seek_event (GstWavpackParse * wvparse,
|
||||||
stop = gst_util_uint64_scale_int (stop, rate, GST_SECOND);
|
stop = gst_util_uint64_scale_int (stop, rate, GST_SECOND);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* if seek is to something after the end of the stream seek only
|
|
||||||
* to the end. this can be caused by rounding errors */
|
|
||||||
if (start >= wvparse->total_samples)
|
|
||||||
start = wvparse->total_samples - 1;
|
|
||||||
|
|
||||||
if (start < 0) {
|
if (start < 0) {
|
||||||
GST_OBJECT_UNLOCK (wvparse);
|
GST_OBJECT_UNLOCK (wvparse);
|
||||||
GST_DEBUG_OBJECT (wvparse, "Invalid start sample %" G_GINT64_FORMAT, start);
|
GST_DEBUG_OBJECT (wvparse, "Invalid start sample %" G_GINT64_FORMAT, start);
|
||||||
|
|
Loading…
Reference in a new issue