From 984afa245368e568a15272e8d7f17ba241ab0b46 Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Thu, 11 Nov 2004 17:43:30 +0000 Subject: ext/musepack/gstmusepackreader.cpp: Workaround for older core. Original commit message from CVS: * ext/musepack/gstmusepackreader.cpp: Workaround for older core. --- ext/musepack/gstmusepackreader.c | 2 +- ext/musepack/gstmusepackreader.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/musepack') diff --git a/ext/musepack/gstmusepackreader.c b/ext/musepack/gstmusepackreader.c index e26baabc..2bef1cf2 100644 --- a/ext/musepack/gstmusepackreader.c +++ b/ext/musepack/gstmusepackreader.c @@ -87,7 +87,7 @@ GstMusepackReader::seek (mpc_int32_t offset) /* hacky hack - if we're after typefind, we'll fail because * typefind is still typefinding (heh :) ). So read first. */ - if (this->tell () == 0) { + if (this->tell () != this->get_size ()) { guint8 dummy2[1]; this->read (dummy2, 1); } diff --git a/ext/musepack/gstmusepackreader.cpp b/ext/musepack/gstmusepackreader.cpp index e26baabc..2bef1cf2 100644 --- a/ext/musepack/gstmusepackreader.cpp +++ b/ext/musepack/gstmusepackreader.cpp @@ -87,7 +87,7 @@ GstMusepackReader::seek (mpc_int32_t offset) /* hacky hack - if we're after typefind, we'll fail because * typefind is still typefinding (heh :) ). So read first. */ - if (this->tell () == 0) { + if (this->tell () != this->get_size ()) { guint8 dummy2[1]; this->read (dummy2, 1); } -- cgit v1.2.1