From 2c47f4d65806c2f48d724863ff8b4f0a0f9d9964 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 2 May 2007 16:58:06 +0000 Subject: [PATCH] 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. --- ext/wavpack/gstwavpackparse.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/ext/wavpack/gstwavpackparse.c b/ext/wavpack/gstwavpackparse.c index ef86961732..91eb7cf093 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);