diff options
author | Sebastian Dröge <slomo@circular-chaos.org> | 2007-05-02 16:58:06 +0000 |
---|---|---|
committer | Sebastian Dröge <slomo@circular-chaos.org> | 2007-05-02 16:58:06 +0000 |
commit | 842e4f6220619c88e2bd33baa2fd8b1e70d88228 (patch) | |
tree | 56a2a3dc24f78c49032508c73176d4e8762c4ffb | |
parent | eee3562f09892f0451f5bc791f3a74dee0fbca2e (diff) | |
download | gst-plugins-bad-842e4f6220619c88e2bd33baa2fd8b1e70d88228.tar.gz gst-plugins-bad-842e4f6220619c88e2bd33baa2fd8b1e70d88228.tar.bz2 gst-plugins-bad-842e4f6220619c88e2bd33baa2fd8b1e70d88228.zip |
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.
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | ext/wavpack/gstwavpackparse.c | 5 |
2 files changed, 8 insertions, 5 deletions
@@ -2,6 +2,14 @@ * 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> + + * ext/wavpack/gstwavpackparse.c: + (gst_wavpack_parse_handle_seek_event): Handle segment seeks in the seek event handler, correctly work with stop position == -1 and instead of stopping the task on seek just pause it. diff --git a/ext/wavpack/gstwavpackparse.c b/ext/wavpack/gstwavpackparse.c index ef869617..91eb7cf0 100644 --- a/ext/wavpack/gstwavpackparse.c +++ b/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); } - /* 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) { GST_OBJECT_UNLOCK (wvparse); GST_DEBUG_OBJECT (wvparse, "Invalid start sample %" G_GINT64_FORMAT, start); |